From e0fb41d53cf78e8f08cb15cfc445ac85cb07fc0a Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 29 Nov 2010 02:26:46 +0000 Subject: [PATCH] boost/type_traits/common_type.hpp: workaround for gcc 3.2 and 3.3 to avoid spurious warning [SVN r66835] --- include/boost/type_traits/common_type.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/type_traits/common_type.hpp b/include/boost/type_traits/common_type.hpp index 58525fd..74b0363 100644 --- a/include/boost/type_traits/common_type.hpp +++ b/include/boost/type_traits/common_type.hpp @@ -120,6 +120,11 @@ namespace type_traits_detail { public: typedef BOOST_TYPEOF_TPL(declval_b() ? declval_T() : declval_U()) type; #endif + +#if defined(__GNUC__) && __GNUC__ == 3 && (__GNUC_MINOR__ == 2 || __GNUC_MINOR__ == 3) + public: + void public_dummy_function_just_to_silence_warning(); +#endif }; template