From c1251d299416500e37af0bcab4ab28b1ff1281e9 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 6 Jan 2015 17:43:23 +0000 Subject: [PATCH] Examples: Fixed warnings for Clang --- examples/opengl3_example/main.cpp | 5 ++++- examples/opengl_example/main.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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"