visual studio 2012 Level 4 warning fixes

This commit is contained in:
Thomas Fischer 2014-03-15 11:38:53 +01:00
parent 835649aa2f
commit 502e346eb6
8 changed files with 19 additions and 24 deletions

View file

@ -108,7 +108,7 @@ compare_right(const nat_char* a, const nat_char* b)
remember it in BIAS. */
for (;; a++, b++) {
if (!nat_isdigit(*a) && !nat_isdigit(*b))
return bias;
break;
else if (!nat_isdigit(*a))
return -1;
else if (!nat_isdigit(*b))
@ -123,7 +123,7 @@ compare_right(const nat_char* a, const nat_char* b)
return bias;
}
return 0;
return bias;
}
@ -134,7 +134,7 @@ compare_left(const nat_char* a, const nat_char* b)
different value wins. */
for (;; a++, b++) {
if (!nat_isdigit(*a) && !nat_isdigit(*b))
return 0;
break;
else if (!nat_isdigit(*a))
return -1;
else if (!nat_isdigit(*b))

View file

@ -407,6 +407,7 @@ public:
{
AssertFatal(IsPlaying(), "Journal::Read - not playing right now.");
bool r = mFile->read(v);
TORQUE_UNUSED(r);
AssertFatal(r, "Journal::Read - failed to read!");
}
@ -429,6 +430,7 @@ public:
{
AssertFatal(IsRecording(), "Journal::Write - not recording right now.");
bool r = mFile->write(v);
TORQUE_UNUSED(r);
AssertFatal(r, "Journal::Write - failed to write!");
}