Remove include guards from warning suppression headers.

They are intended to temporarily change compiler state, and may be
included multiple times in a single compilation unit.
This commit is contained in:
Atgeirr Flø Rasmussen 2014-09-20 09:29:03 +02:00
parent 170f8171d6
commit 9afe054c25
2 changed files with 4 additions and 10 deletions

View File

@ -17,8 +17,7 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_DISABLE_WARNINGS_HEADER_INCLUDED
#define OPM_DISABLE_WARNINGS_HEADER_INCLUDED
// Note: this file shall not have include guards or #pragma once.
#ifdef SILENCE_EXTERNAL_WARNINGS
@ -64,6 +63,4 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif // COMPATIBLE_COMPILER
#endif
#endif // OPM_DISABLE_WARNINGS_HEADER_INCLUDED
#endif // SILENCE_EXTERNAL_WARNINGS

View File

@ -17,8 +17,7 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_REENABLE_WARNINGS_HEADER_INCLUDED
#define OPM_REENABLE_WARNINGS_HEADER_INCLUDED
// Note: this file shall not have include guards or #pragma once.
#ifdef SILENCE_EXTERNAL_WARNINGS
@ -55,6 +54,4 @@
#pragma GCC diagnostic pop
#endif // COMPATIBLE_COMPILER
#endif
#endif // OPM_REENABLE_WARNINGS_HEADER_INCLUDED
#endif // SILENCE_EXTERNAL_WARNINGS