mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 06:06:35 +00:00
Examples: Fixed warnings for Clang
This commit is contained in:
parent
1c657564ac
commit
c1251d2994
@ -1,7 +1,10 @@
|
|||||||
// ImGui - standalone example application for OpenGL 3, using programmable pipeline
|
// ImGui - standalone example application for OpenGL 3, using programmable pipeline
|
||||||
|
|
||||||
#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
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic ignored "-Wunused-function" // warning: unused function
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../imgui.h"
|
#include "../../imgui.h"
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
// ImGui - standalone example application for OpenGL 2, using fixed pipeline
|
// ImGui - standalone example application for OpenGL 2, using fixed pipeline
|
||||||
|
|
||||||
#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
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic ignored "-Wunused-function" // warning: unused function
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../imgui.h"
|
#include "../../imgui.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user