From 5d0b8c1f752c6bbc76aae665d758ce7183be93fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 22 Mar 2015 17:42:19 -0700 Subject: [PATCH] Fixed warning. --- 3rdparty/ocornut-imgui/imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/ocornut-imgui/imgui.cpp b/3rdparty/ocornut-imgui/imgui.cpp index 866bec93..8a26d9cf 100644 --- a/3rdparty/ocornut-imgui/imgui.cpp +++ b/3rdparty/ocornut-imgui/imgui.cpp @@ -350,8 +350,8 @@ #pragma clang diagnostic ignored "-Wexit-time-destructors" // warning : declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. #pragma clang diagnostic ignored "-Wglobal-constructors" // warning : declaration requires a global destructor // similar to above, not sure what the exact difference it. #pragma clang diagnostic ignored "-Wsign-conversion" // warning : implicit conversion changes signedness // -#endif -#ifdef __GNUC__ +#pragma clang diagnostic ignored "-Wunused-parameter" // warning: unused parameter ‘xxxx’ +#elif defined(__GNUC__) #pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used #pragma GCC diagnostic ignored "-Wunused-parameter" // warning: unused parameter ‘xxxx’ #pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type