Honor SILENCE_EXTERNAL_WARNINGS in suppression headers.
This commit is contained in:
parent
c838f34dc6
commit
a47e6775bd
@ -20,6 +20,8 @@
|
||||
#ifndef 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.
|
||||
|
||||
// Using gcc is ok if version 4.6 or newer.
|
||||
@ -62,4 +64,6 @@
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif // COMPATIBLE_COMPILER
|
||||
|
||||
#endif
|
||||
|
||||
#endif // OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
||||
|
@ -20,6 +20,8 @@
|
||||
#ifndef 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.
|
||||
|
||||
// Using gcc is ok if version 4.6 or newer.
|
||||
@ -53,4 +55,6 @@
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // COMPATIBLE_COMPILER
|
||||
|
||||
#endif
|
||||
|
||||
#endif // OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
||||
|
Loading…
Reference in New Issue
Block a user