mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
allow turning off GCC_DIAG_ON/OFF
This commit is contained in:
@@ -44,25 +44,13 @@
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifndef __THROW
|
||||
#ifndef __GNUC_PREREQ
|
||||
#define __GNUC_PREREQ(maj, min) (0)
|
||||
#endif
|
||||
#if defined __cplusplus && __GNUC_PREREQ (2,8)
|
||||
#define __THROW throw ()
|
||||
#else
|
||||
#define __THROW
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// GCC diagnostics enable/disable by Patrick Horgan, see
|
||||
// http://dbp-consulting.com/tutorials/SuppressingGCCWarnings.html
|
||||
// use example: GCC_DIAG_OFF(unused-variable)
|
||||
//
|
||||
#if defined(POCO_COMPILER_GCC) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 406)
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(POCO_COMPILER_GCC) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 406) && !defined(POCO_NO_GCC_DIAG)
|
||||
#ifdef GCC_DIAG_OFF
|
||||
#undef GCC_DIAG_OFF
|
||||
#endif
|
||||
@@ -85,7 +73,6 @@
|
||||
#define GCC_DIAG_OFF(x)
|
||||
#define GCC_DIAG_ON(x)
|
||||
#endif
|
||||
|
||||
#endif // __GNUC__
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user