Internals: Tidying up, moving helpers to imgui_internal.h (in prevision of 1.64 refactor)

This commit is contained in:
omar
2018-08-28 22:52:51 +02:00
parent ec148988f0
commit 92edb7a4e3
3 changed files with 54 additions and 59 deletions

View File

@ -34,11 +34,13 @@
#endif
#endif
// Visual Studio warnings
#ifdef _MSC_VER
#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff)
#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen
#endif
// Clang/GCC warnings with -Weverything
#ifdef __clang__
#pragma clang diagnostic ignored "-Wold-style-cast" // warning : use of old-style cast // yes, they are more terse.
#pragma clang diagnostic ignored "-Wfloat-equal" // warning : comparing floating point with == or != is unsafe // storing and comparing against same constants ok.