Disable clang anonymous struct warnings for coord

This commit is contained in:
Danny Robson 2012-06-13 14:43:46 +10:00
parent fe38ffcd80
commit 7dcb56680b

View File

@ -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 <size_t S>
struct coord_data {
coord_data () { ; }