From 7dcb56680b5bcd6c5d559d200f53a08f3d7c547e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 13 Jun 2012 14:43:46 +1000 Subject: [PATCH] Disable clang anonymous struct warnings for coord --- detail/coord.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/detail/coord.hpp b/detail/coord.hpp index 8e577f8f..7ce05349 100644 --- a/detail/coord.hpp +++ b/detail/coord.hpp @@ -20,13 +20,20 @@ #ifndef __UTIL_COORD_HPP #define __UTIL_COORD_HPP +#include "../platform.hpp" + namespace util { namespace detail { // Disable GCC warnings about validity of anonyous structures in // unions. Push comes to shove I'll manually redsign everything to // keep this syntax anyway. #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-pedantic" +#if defined(COMPILER_GCC) + #pragma GCC diagnostic ignored "-pedantic" +#endif +#if defined(COMPILER_CLANG) + #pragma GCC diagnostic ignored "-Wgnu" +#endif template struct coord_data { coord_data () { ; }