From aeae03f4ac06a3ae1c85ccfdd4f2c35bfc1a2a8e Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 7 Jul 2015 12:05:15 -0600 Subject: [PATCH] Fixed minor zealous Clang warning (demo code intentionally uses strdup() to be copiable) --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 63893082..9a8e942d 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -453,6 +453,7 @@ #pragma clang diagnostic ignored "-Wglobal-constructors" // warning : declaration requires a global destructor // similar to above, not sure what the exact difference it. #pragma clang diagnostic ignored "-Wsign-conversion" // warning : implicit conversion changes signedness // #pragma clang diagnostic ignored "-Wmissing-noreturn" // warning : function xx could be declared with attribute 'noreturn' warning // GetDefaultFontData() asserts which some implementation makes it never return. +#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) #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used