build: remove unnecessary pedantic checks

This commit is contained in:
Danny Robson 2016-04-28 16:08:20 +10:00
parent 3e46f18e5a
commit efa52c60e9
2 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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;