Honor SILENCE_EXTERNAL_WARNINGS in suppression headers.
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
#ifndef OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
#ifndef OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
||||||
#define OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
#define OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
||||||
|
|
||||||
|
#ifdef SILENCE_EXTERNAL_WARNINGS
|
||||||
|
|
||||||
// To use this feature, we must have sufficiently new compiler.
|
// To use this feature, we must have sufficiently new compiler.
|
||||||
|
|
||||||
// Using gcc is ok if version 4.6 or newer.
|
// Using gcc is ok if version 4.6 or newer.
|
||||||
@@ -62,4 +64,6 @@
|
|||||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
#endif // COMPATIBLE_COMPILER
|
#endif // COMPATIBLE_COMPILER
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
#endif // OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
#ifndef OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
#ifndef OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
||||||
#define OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
#define OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
||||||
|
|
||||||
|
#ifdef SILENCE_EXTERNAL_WARNINGS
|
||||||
|
|
||||||
// To use this feature, we must have sufficiently new compiler.
|
// To use this feature, we must have sufficiently new compiler.
|
||||||
|
|
||||||
// Using gcc is ok if version 4.6 or newer.
|
// Using gcc is ok if version 4.6 or newer.
|
||||||
@@ -53,4 +55,6 @@
|
|||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif // COMPATIBLE_COMPILER
|
#endif // COMPATIBLE_COMPILER
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
#endif // OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
||||||
|
|||||||
Reference in New Issue
Block a user