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:
parent
170f8171d6
commit
9afe054c25
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user