# HG changeset patch # User Wuzzy # Date 1532219384 -7200 # Node ID ecdf6ce2301e5540993d925ff4757335123bb6da # Parent 2694e8449a2a12f0efc2669b37f97d453eb78cb0 Fix warnings about unused params in C code diff -r 2694e8449a2a -r ecdf6ce2301e hedgewars/avwrapper/avwrapper.c --- a/hedgewars/avwrapper/avwrapper.c Sat Jul 21 15:58:07 2018 +0200 +++ b/hedgewars/avwrapper/avwrapper.c Sun Jul 22 02:29:44 2018 +0200 @@ -35,6 +35,8 @@ #define AVWRAP_DECL #endif +#define UNUSED(x) (void)(x) + static AVFormatContext* g_pContainer; static AVOutputFormat* g_pFormat; static AVStream* g_pAStream; @@ -138,6 +140,9 @@ // (there is mutex in AddFileLogRaw). static void LogCallback(void* p, int Level, const char* pFmt, va_list VaArgs) { + UNUSED(p); + UNUSED(Level); + char Buffer[1024]; vsnprintf(Buffer, 1024, pFmt, VaArgs); diff -r 2694e8449a2a -r ecdf6ce2301e misc/libphyslayer/physfslualoader.c --- a/misc/libphyslayer/physfslualoader.c Sat Jul 21 15:58:07 2018 +0200 +++ b/misc/libphyslayer/physfslualoader.c Sun Jul 22 02:29:44 2018 +0200 @@ -4,11 +4,13 @@ #include "physfscompat.h" #define BUFSIZE 1024 +#define UNUSED(x) (void)(x) void *physfsReaderBuffer; PHYSFS_DECL const char * physfsReader(lua_State *L, PHYSFS_File *f, size_t *size) { + UNUSED(L); if(PHYSFS_eof(f)) {