mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Fixed compilation warnings reported by GCC/Clang
src/events.cpp:167:66: warning: format specifies type 'char *' but the argument has type 'char' [-Wformat] src/events.cpp:167:84: warning: data argument not used by format string [-Wformat-extra-args] src/events.cpp:1036:20: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
This commit is contained in:
parent
dd0f55e8d8
commit
a9f650c3f2
1 changed files with 3 additions and 3 deletions
|
@ -164,7 +164,7 @@ static void E_InitStaticHandler(PClass* type, FString typestring, bool map)
|
||||||
{
|
{
|
||||||
if (type == nullptr)
|
if (type == nullptr)
|
||||||
{
|
{
|
||||||
I_Error("Fatal: unknown event handler class %s in MAPINFO!\n", TEXTCOLOR_ESCAPE, typestring.GetChars());
|
I_Error("Fatal: unknown event handler class %s in MAPINFO!\n", typestring.GetChars());
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1033,7 +1033,7 @@ static DConsoleEvent* E_SetupConsoleEvent()
|
||||||
if (!e) e = (DConsoleEvent*)RUNTIME_CLASS(DConsoleEvent)->CreateNew();
|
if (!e) e = (DConsoleEvent*)RUNTIME_CLASS(DConsoleEvent)->CreateNew();
|
||||||
e->Player = -1;
|
e->Player = -1;
|
||||||
e->Name = "";
|
e->Name = "";
|
||||||
for (int i = 0; i < countof(e->Args); i++)
|
for (size_t i = 0; i < countof(e->Args); i++)
|
||||||
e->Args[i] = 0;
|
e->Args[i] = 0;
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue