diff --git a/Foundation/include/Poco/Bugcheck.h b/Foundation/include/Poco/Bugcheck.h index 3683ac98d..904200fc2 100644 --- a/Foundation/include/Poco/Bugcheck.h +++ b/Foundation/include/Poco/Bugcheck.h @@ -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 // +GCC_DIAG_OFF(unused-local-typedefs) // supress numerous gcc warnings + + template struct POCO_STATIC_ASSERTION_FAILURE; -template <> -struct POCO_STATIC_ASSERTION_FAILURE +template <> +struct POCO_STATIC_ASSERTION_FAILURE { - enum - { - value = 1 - }; + enum + { + value = 1 + }; };