diff --git a/examples/opengl3_example/main.cpp b/examples/opengl3_example/main.cpp index 7644d4d7..91dcd149 100644 --- a/examples/opengl3_example/main.cpp +++ b/examples/opengl3_example/main.cpp @@ -1,7 +1,10 @@ // ImGui - standalone example application for OpenGL 3, using programmable pipeline #ifdef _MSC_VER -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#endif +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wunused-function" // warning: unused function #endif #include "../../imgui.h" diff --git a/examples/opengl_example/main.cpp b/examples/opengl_example/main.cpp index f755d59b..12989cb4 100644 --- a/examples/opengl_example/main.cpp +++ b/examples/opengl_example/main.cpp @@ -1,7 +1,10 @@ // ImGui - standalone example application for OpenGL 2, using fixed pipeline #ifdef _MSC_VER -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#endif +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wunused-function" // warning: unused function #endif #include "../../imgui.h"