From 6a90ac2094c92f3324c8bbc05cfffec98efa2fdd Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 9 Aug 2015 10:45:58 -0600 Subject: [PATCH] Tentative GCC/Clang warning fixes with unused functions (cf #296) --- imgui_demo.cpp | 1 - imgui_draw.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 178d40ee..cf9444a2 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -15,7 +15,6 @@ #include // vsnprintf, sscanf, printf #ifdef _MSC_VER -#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen #define snprintf _snprintf #endif diff --git a/imgui_draw.cpp b/imgui_draw.cpp index 4674cc68..52bd4f15 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -31,6 +31,9 @@ #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen #define snprintf _snprintf #endif +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#endif //------------------------------------------------------------------------- // STB libraries implementation