From 37dcf58e2f3898ab58f75f6e18a447c72bad6877 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 17 Jan 2015 23:13:54 +0000 Subject: [PATCH] Fixed clang warnings --- imgui.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 7db7fdfa..014781ae 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -329,7 +329,14 @@ #define STBRP_STATIC #define STB_RECT_PACK_IMPLEMENTATION +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-function" +#endif #include "stb_rect_pack.h" +#ifdef __clang__ +#pragma clang diagnostic pop +#endif #define STB_TRUETYPE_IMPLEMENTATION #define STBTT_malloc(x,u) ((void)(u), ImGui::MemAlloc(x)) @@ -5939,7 +5946,6 @@ void ImGui::Color(const char* prefix, unsigned int v) //----------------------------------------------------------------------------- static ImVec4 GNullClipRect(-9999.0f,-9999.0f, +9999.0f, +9999.0f); -static ImTextureID GNullTextureID = NULL; void ImDrawList::Clear() {