From fd0a8f8c2c4478e0c053b0810bb3116e6d11c4dd Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 27 Oct 2009 09:58:40 +0000 Subject: [PATCH] Suppress gcc warnings: for bug report #1451. [SVN r57170] --- include/boost/integer_traits.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/integer_traits.hpp b/include/boost/integer_traits.hpp index 4cdc817..9be25ce 100644 --- a/include/boost/integer_traits.hpp +++ b/include/boost/integer_traits.hpp @@ -158,6 +158,16 @@ class integer_traits { }; #if !defined(BOOST_NO_INTEGRAL_INT64_T) && !defined(BOOST_NO_INT64_T) && BOOST_HAS_XINT + +#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 3))) +// +// The following code emits warnings when built with -pedantic, and there appears +// to be no other way of suppressing these warnings as use of __extension__ has no +// effect, so declare the rest of this header a system header. +// +# pragma GCC system_header +#endif + template<> class integer_traits< detail::xint_t > : public std::numeric_limits< detail::xint_t >,