From 9edaeb4998271b0d055bef838228805351b990c2 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 31 Aug 2010 12:19:53 +0000 Subject: [PATCH] Suppress GCC warnings from this header when compiled with -pedantic and certain GCC-4.x versions (probably 4.5.0 specific). [SVN r65146] --- include/boost/config/suffix.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/config/suffix.hpp b/include/boost/config/suffix.hpp index 3408d225..722758f9 100644 --- a/include/boost/config/suffix.hpp +++ b/include/boost/config/suffix.hpp @@ -25,6 +25,14 @@ #ifndef BOOST_CONFIG_SUFFIX_HPP #define BOOST_CONFIG_SUFFIX_HPP +#if defined(__GNUC__) && (__GNUC__ >= 4) +// +// Some GCC-4.x versions issue warnings even when __extension__ is used, +// so use this as a workaround: +// +#pragma GCC system_header +#endif + // // ensure that visibility macros are always defined, thus symplifying use //