From c40a626f1c0c85af4e147247ed223241b3d7b1dd Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 23 Feb 2013 18:26:39 +0000 Subject: [PATCH] Suppress GCC warnings. [SVN r83104] --- include/boost/static_assert.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/static_assert.hpp b/include/boost/static_assert.hpp index d11411a..c1343c0 100644 --- a/include/boost/static_assert.hpp +++ b/include/boost/static_assert.hpp @@ -17,6 +17,15 @@ #include #include +#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) +// +// This is horrible, but it seems to be the only we can shut up the +// "anonymous variadic macros were introduced in C99 [-Wvariadic-macros]" +// warning that get spewed out otherwise in non-C++11 mode. +// +#pragma GCC system_header +#endif + #ifndef BOOST_NO_CXX11_STATIC_ASSERT # ifndef BOOST_NO_CXX11_VARIADIC_MACROS # define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__)