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