Honor SILENCE_EXTERNAL_WARNINGS in suppression headers.

This commit is contained in:
Atgeirr Flø Rasmussen 2014-09-19 14:43:55 +02:00
parent c838f34dc6
commit a47e6775bd
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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