From cde6de22d9b6d8b94bc7a1b6930d237e3f72235d Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sat, 3 May 2008 18:20:15 +0000 Subject: [PATCH] Disabled bogus GCC warnings. [SVN r45082] --- include/boost/exception/detail/cloning_base.hpp | 4 ++++ include/boost/exception/detail/counted_base.hpp | 4 ++++ include/boost/exception/info.hpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/include/boost/exception/detail/cloning_base.hpp b/include/boost/exception/detail/cloning_base.hpp index 946d41d..1631951 100644 --- a/include/boost/exception/detail/cloning_base.hpp +++ b/include/boost/exception/detail/cloning_base.hpp @@ -23,6 +23,10 @@ boost protected: +#ifdef __GNUC__ +virtual //Disable bogus GCC warning. +//Would someone at GCC finally get the protected, non-virtual destructor approach? +#endif ~cloning_base() throw() { } diff --git a/include/boost/exception/detail/counted_base.hpp b/include/boost/exception/detail/counted_base.hpp index 2dad9ac..0dca267 100644 --- a/include/boost/exception/detail/counted_base.hpp +++ b/include/boost/exception/detail/counted_base.hpp @@ -34,6 +34,10 @@ boost protected: +#ifdef __GNUC__ +virtual //Disable bogus GCC warning. +//Would someone at GCC finally get the protected, non-virtual destructor approach? +#endif ~counted_base() throw() { } diff --git a/include/boost/exception/info.hpp b/include/boost/exception/info.hpp index c263d54..7a9d146 100644 --- a/include/boost/exception/info.hpp +++ b/include/boost/exception/info.hpp @@ -39,6 +39,10 @@ boost protected: +#ifdef __GNUC__ +virtual //Disable bogus GCC warning. +//Would someone at GCC finally get the protected, non-virtual destructor approach? +#endif ~error_info_base() { }