From 23e7bdebcf168c3d5197cabdbffea33926462c86 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 8 Aug 2015 12:30:56 -0600 Subject: [PATCH] Warnings for clang (#295) --- imgui_demo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 946003230..178d40eec 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -22,6 +22,7 @@ #ifdef __clang__ #pragma clang diagnostic ignored "-Wdeprecated-declarations" // warning : 'xx' is deprecated: The POSIX name for this item.. // for strdup used in demo code (so user can copy & paste the code) #pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning : cast to 'void *' from smaller integer type 'int' +#pragma clang diagnostic ignored "-Wformat-security" // warning : warning: format string is not a string literal #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size