build: remove unnecessary pedantic checks
This commit is contained in:
parent
3e46f18e5a
commit
efa52c60e9
@ -28,12 +28,9 @@ namespace util { namespace coord {
|
||||
// Disable GCC warnings about validity of anonymous structures in
|
||||
// unions. Push comes to shove I'll manually redsign everything to
|
||||
// keep this syntax anyway.
|
||||
#pragma GCC diagnostic push
|
||||
#if defined(COMPILER_GCC)
|
||||
#pragma GCC diagnostic ignored "-pedantic"
|
||||
#endif
|
||||
#if defined(COMPILER_CLANG)
|
||||
#pragma GCC diagnostic ignored "-Wgnu"
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wgnu-anonymous-struct"
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
@ -181,7 +178,9 @@ namespace util { namespace coord {
|
||||
};
|
||||
};
|
||||
|
||||
#if defined(COMPILER_CLANG)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
} }
|
||||
|
||||
#endif
|
||||
|
@ -43,12 +43,9 @@ namespace util {
|
||||
static constexpr size_t dimension = S;
|
||||
static constexpr size_t elements = extent_t::elements + point_t::elements;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#if defined(COMPILER_GCC)
|
||||
#pragma GCC diagnostic ignored "-pedantic"
|
||||
#endif
|
||||
#if defined(COMPILER_CLANG)
|
||||
#pragma GCC diagnostic ignored "-Wgnu"
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wgnu-anonymous-struct"
|
||||
#endif
|
||||
union {
|
||||
struct {
|
||||
@ -60,7 +57,9 @@ namespace util {
|
||||
T w, h;
|
||||
};
|
||||
};
|
||||
#if defined(COMPILER_CLANG)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
region () = default;
|
||||
|
Loading…
Reference in New Issue
Block a user