supress gcc warning avalanche

This commit is contained in:
Alex Fabijanic
2014-12-08 20:13:20 -06:00
parent e5cdb74bb0
commit 10aedfe5ad

View File

@@ -43,7 +43,7 @@ public:
static void assertion(const char* cond, const char* file, int line, const char* text = 0); static void assertion(const char* cond, const char* file, int line, const char* text = 0);
/// An assertion failed. Break into the debugger, if /// An assertion failed. Break into the debugger, if
/// possible, then throw an AssertionViolationException. /// possible, then throw an AssertionViolationException.
static void nullPointer(const char* ptr, const char* file, int line); static void nullPointer(const char* ptr, const char* file, int line);
/// An null pointer was encountered. Break into the debugger, if /// An null pointer was encountered. Break into the debugger, if
/// possible, then throw an NullPointerException. /// possible, then throw an NullPointerException.
@@ -111,8 +111,8 @@ protected:
#define poco_bugcheck_msg(msg) \ #define poco_bugcheck_msg(msg) \
Poco::Bugcheck::bugcheck(msg, __FILE__, __LINE__) Poco::Bugcheck::bugcheck(msg, __FILE__, __LINE__)
#define poco_unexpected() \ #define poco_unexpected() \
Poco::Bugcheck::unexpected(__FILE__, __LINE__); Poco::Bugcheck::unexpected(__FILE__, __LINE__);
@@ -143,22 +143,25 @@ protected:
// //
// poco_static_assert // poco_static_assert
// //
// The following was ported from <boost/static_assert.hpp> // The following was ported from <boost/static_assert.hpp>
// //
GCC_DIAG_OFF(unused-local-typedefs) // supress numerous gcc warnings
template <bool x> template <bool x>
struct POCO_STATIC_ASSERTION_FAILURE; struct POCO_STATIC_ASSERTION_FAILURE;
template <> template <>
struct POCO_STATIC_ASSERTION_FAILURE<true> struct POCO_STATIC_ASSERTION_FAILURE<true>
{ {
enum enum
{ {
value = 1 value = 1
}; };
}; };