Fixed compilation warnings reported by GCC/Clang

b_game.cpp:537:27: warning: more '%' conversions than data arguments [-Wformat]
g_game.cpp:2982:40: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'long' [-Wsign-compare]
This commit is contained in:
alexey.lysiuk 2017-12-03 13:18:47 +02:00
parent f25c7ef2d5
commit 31d1018b9a
2 changed files with 3 additions and 3 deletions

View File

@ -534,7 +534,7 @@ bool FCajunMaster::LoadBots ()
}
if (!sc.OpenFile(tmp))
{
Printf("Unable to open %s. So no bots\n");
Printf("Unable to open %s. So no bots\n", tmp.GetChars());
return false;
}
@ -665,4 +665,4 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, RemoveAllBots)
PARAM_BOOL(fromlist);
bglobal.RemoveAllBots(fromlist);
return 0;
}
}

View File

@ -2978,7 +2978,7 @@ bool G_CheckDemoStatus (void)
bool saved = false;
if (fw != nullptr)
{
auto size = long(demo_p - demobuffer);
const size_t size = demo_p - demobuffer;
saved = fw->Write(demobuffer, size) == size;
delete fw;
if (!saved) remove(demoname);