mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
visual studio 2012 Level 4 warning fixes
This commit is contained in:
parent
835649aa2f
commit
502e346eb6
8 changed files with 19 additions and 24 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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!");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue