Disable -Wpragmas warning in GCC to avoid relying on version checks, as unusual/forks/mods don't appear to always have same warning<>version. (#2618)

+ Fix version number in imgui.h
This commit is contained in:
omar
2019-06-17 11:32:00 +02:00
parent b82e99c032
commit e9b92d1cef
7 changed files with 17 additions and 19 deletions

View File

@ -1,4 +1,4 @@
// dear imgui, v1.71 WIP
// dear imgui, v1.72 WIP
// (headers)
// See imgui.cpp file for documentation.
@ -83,9 +83,10 @@ Index of this file:
#if __has_warning("-Wzero-as-null-pointer-constant")
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
#elif defined(__GNUC__) && __GNUC__ >= 8
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind
#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead
#endif
//-----------------------------------------------------------------------------
@ -2201,7 +2202,7 @@ struct ImFont
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__) && __GNUC__ >= 8
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif