From 4098dbb8fb4e265c62955a42deedacd9ca231a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 15 Apr 2015 20:05:18 -0700 Subject: [PATCH] Fixed GCC warnings. --- examples/common/imgui/imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 8c1f9f8f..6d2d566d 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -77,7 +77,9 @@ void imguiFree(void* _ptr, void*); #define IMGUI_CLAMP(_a, _min, _max) IMGUI_MIN(IMGUI_MAX(_a, _min), _max) BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4505); // error C4505: '' : unreferenced local function has been removed +BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG_GCC("-Wunused-function"); // warning: ‘int rect_width_compare(const void*, const void*)’ defined but not used BX_PRAGMA_DIAGNOSTIC_PUSH(); +BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG_GCC("-Wtype-limits"); // warning: comparison is always true due to limited range of data type #define STBTT_malloc(_size, _userData) imguiMalloc(_size, _userData) #define STBTT_free(_ptr, _userData) imguiFree(_ptr, _userData) #define STB_RECT_PACK_IMPLEMENTATION