mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
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:
parent
f25c7ef2d5
commit
31d1018b9a
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue