mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-17 01:04:19 +00:00
Fixed GCC mem-access warnings (#2565)
+ using "if defined" more consistently for Clang.
This commit is contained in:
parent
31e3e861ef
commit
f242cd4d8a
5 changed files with 22 additions and 13 deletions
|
|
@ -995,7 +995,7 @@ CODE
|
|||
#endif
|
||||
|
||||
// Clang/GCC warnings with -Weverything
|
||||
#ifdef __clang__
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning : unknown warning group '-Wformat-pedantic *' // not all warnings are known by all clang versions.. so ignoring warnings triggers new warnings on some configuration. great!
|
||||
#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 (typically 0.0f) is ok.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue