From e47bf041bfe1bb3492e9c5e708d6563a22e3d93c Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 1 Aug 2015 21:37:32 -0600 Subject: [PATCH] Clang warning fixes --- imgui_demo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 48c7e2f25..e3d2c4674 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -20,10 +20,11 @@ #define snprintf _snprintf #endif #ifdef __clang__ -#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning : cast to 'void *' from smaller integer type 'int' +#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' #endif #ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size #endif // Play it nice with Windows users. Notepad in 2015 still doesn't display text data with Unix-style \n.