Examples: Fixed warnings for Clang

This commit is contained in:
ocornut 2015-01-06 17:43:23 +00:00
parent 1c657564ac
commit c1251d2994
2 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,9 @@
#ifdef _MSC_VER #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 #endif
#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-function" // warning: unused function
#endif
#include "../../imgui.h" #include "../../imgui.h"
#define STB_IMAGE_STATIC #define STB_IMAGE_STATIC

View File

@ -3,6 +3,9 @@
#ifdef _MSC_VER #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 #endif
#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-function" // warning: unused function
#endif
#include "../../imgui.h" #include "../../imgui.h"
#define STB_IMAGE_STATIC #define STB_IMAGE_STATIC