forked from mia/Aegisub
Fix some warnings
Originally committed to SVN as r6919.
This commit is contained in:
parent
e4e80b4d3d
commit
e945c02151
4 changed files with 11 additions and 11 deletions
|
@ -340,7 +340,8 @@ UnknownElement Reader::ParseNumber(Reader::TokenStream& tokenStream) {
|
|||
|
||||
// If there's still stuff left in the token then it's malformed
|
||||
if (!iStr.eof())
|
||||
throw ParseException("Unexpected character in NUMBER token: " + iStr.peek(), currentToken.locBegin, currentToken.locEnd);
|
||||
throw ParseException(std::string("Unexpected character in NUMBER token: ") + (char)iStr.peek(),
|
||||
currentToken.locBegin, currentToken.locEnd);
|
||||
|
||||
return dValue;
|
||||
}
|
||||
|
|
|
@ -104,9 +104,6 @@ typedef std::deque<SinkMessage*> Sink;
|
|||
|
||||
/// Log sink, single destination for all messages
|
||||
class LogSink {
|
||||
/// Size of current sink, this is only an estimate that is used for trimming.
|
||||
int64_t size;
|
||||
|
||||
/// Log sink
|
||||
Sink sink;
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ Save::Save(const std::string& file, bool binary): file_name(file) {
|
|||
// If the file doesn't exist we create a 0 byte file, this so so
|
||||
// util::Rename will find it, and to let users know something went
|
||||
// wrong by leaving a 0 byte file.
|
||||
std::ofstream(file.c_str());
|
||||
(void)std::ofstream(file.c_str());
|
||||
}
|
||||
|
||||
/// @todo This is a temp hack, proper implementation needs to come after
|
||||
|
|
|
@ -50,6 +50,8 @@
|
|||
|
||||
#ifndef AGI_PRE
|
||||
#include <algorithm>
|
||||
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
class PthreadMutexLocker {
|
||||
|
@ -286,12 +288,12 @@ do_setup:
|
|||
avail = std::min(tmp_pcm_avail, (snd_pcm_sframes_t)(ps.end_position-position));
|
||||
if (avail < 0)
|
||||
{
|
||||
printf("\n--------- avail was less than 0: %ld\n", avail);
|
||||
printf("snd_pcm_avail(pcm): %ld\n", tmp_pcm_avail);
|
||||
printf("original position: %ld\n", orig_position);
|
||||
printf("current position: %ld\n", position);
|
||||
printf("original ps.end_position: %ld\n", orig_ps_end_position);
|
||||
printf("current ps.end_position: %ld\n", ps.end_position);
|
||||
printf("\n--------- avail was less than 0: %" PRId64 "\n", avail);
|
||||
printf("snd_pcm_avail(pcm): %" PRId64 "\n", tmp_pcm_avail);
|
||||
printf("original position: %" PRId64 "\n", orig_position);
|
||||
printf("current position: %" PRId64 "\n", position);
|
||||
printf("original ps.end_position: %" PRId64 "\n", orig_ps_end_position);
|
||||
printf("current ps.end_position: %" PRId64 "\n", ps.end_position);
|
||||
printf("---------\n\n");
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue