mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 23:54:17 +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))
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -665,4 +665,4 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, RemoveAllBots)
|
||||||
PARAM_BOOL(fromlist);
|
PARAM_BOOL(fromlist);
|
||||||
bglobal.RemoveAllBots(fromlist);
|
bglobal.RemoveAllBots(fromlist);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2978,7 +2978,7 @@ bool G_CheckDemoStatus (void)
|
||||||
bool saved = false;
|
bool saved = false;
|
||||||
if (fw != nullptr)
|
if (fw != nullptr)
|
||||||
{
|
{
|
||||||
auto size = long(demo_p - demobuffer);
|
const size_t size = demo_p - demobuffer;
|
||||||
saved = fw->Write(demobuffer, size) == size;
|
saved = fw->Write(demobuffer, size) == size;
|
||||||
delete fw;
|
delete fw;
|
||||||
if (!saved) remove(demoname);
|
if (!saved) remove(demoname);
|
||||||
|
|
Loading…
Reference in a new issue