From a9f650c3f22fa35bd18807db7df1222cadee48e0 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 14 Feb 2017 22:13:31 +0200 Subject: [PATCH] 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] --- src/events.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events.cpp b/src/events.cpp index 95a5af587..4522f1989 100755 --- a/src/events.cpp +++ b/src/events.cpp @@ -164,7 +164,7 @@ static void E_InitStaticHandler(PClass* type, FString typestring, bool map) { 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; } @@ -1033,7 +1033,7 @@ static DConsoleEvent* E_SetupConsoleEvent() if (!e) e = (DConsoleEvent*)RUNTIME_CLASS(DConsoleEvent)->CreateNew(); e->Player = -1; 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; return e; } @@ -1114,4 +1114,4 @@ CCMD(netevent) for (int i = 0; i < argn; i++) Net_WriteLong(arg[i]); } -} \ No newline at end of file +}