Suppressing warnings. Please report any problems (may have broken something!)

[SVN r58072]
This commit is contained in:
Emil Dotchevski
2009-12-01 02:16:50 +00:00
committed by Peter Dimov
parent a50067b21d
commit 0e7d54a2aa
4 changed files with 22 additions and 4 deletions

View File

@ -6,9 +6,7 @@
#ifndef UUID_61531AB0680611DEADD5846855D89593 #ifndef UUID_61531AB0680611DEADD5846855D89593
#define UUID_61531AB0680611DEADD5846855D89593 #define UUID_61531AB0680611DEADD5846855D89593
#include <boost/config.hpp> #if defined(_MSC_VER)
#if defined(BOOST_MSVC)
#define BOOST_ATTRIBUTE_NORETURN __declspec(noreturn) #define BOOST_ATTRIBUTE_NORETURN __declspec(noreturn)
#elif defined(__GNUC__) #elif defined(__GNUC__)
#define BOOST_ATTRIBUTE_NORETURN __attribute__((noreturn)) #define BOOST_ATTRIBUTE_NORETURN __attribute__((noreturn))

View File

@ -6,6 +6,10 @@
#ifndef UUID_274DA366004E11DCB1DDFE2E56D89593 #ifndef UUID_274DA366004E11DCB1DDFE2E56D89593
#define UUID_274DA366004E11DCB1DDFE2E56D89593 #define UUID_274DA366004E11DCB1DDFE2E56D89593
#if defined(__GNUC__) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
#pragma GCC system_header
#endif
namespace namespace
boost boost
{ {
@ -151,7 +155,6 @@ boost
protected: protected:
virtual
~error_info_container() throw() ~error_info_container() throw()
{ {
} }
@ -349,6 +352,10 @@ boost
{ {
} }
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4512) //assignment operator could not be generated
#endif
template <class T> template <class T>
class class
clone_impl: clone_impl:
@ -382,6 +389,9 @@ boost
throw*this; throw*this;
} }
}; };
#ifdef _MSC_VER
#pragma warning(pop)
#endif
} }
template <class T> template <class T>

View File

@ -6,6 +6,11 @@
#include <boost/throw_exception.hpp> #include <boost/throw_exception.hpp>
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/config.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4702) //unreachable code
#endif
class my_exception: public std::exception { }; class my_exception: public std::exception { };
int int

View File

@ -7,6 +7,11 @@
#include <boost/throw_exception.hpp> #include <boost/throw_exception.hpp>
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/config.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4702) //unreachable code
#endif
class my_exception: public std::exception { }; class my_exception: public std::exception { };
int int