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