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/>.
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
// Note: this file shall not have include guards or #pragma once.
|
||||||
#define OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
|
||||||
|
|
||||||
#ifdef SILENCE_EXTERNAL_WARNINGS
|
#ifdef SILENCE_EXTERNAL_WARNINGS
|
||||||
|
|
||||||
@ -64,6 +63,4 @@
|
|||||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
#endif // COMPATIBLE_COMPILER
|
#endif // COMPATIBLE_COMPILER
|
||||||
|
|
||||||
#endif
|
#endif // SILENCE_EXTERNAL_WARNINGS
|
||||||
|
|
||||||
#endif // OPM_DISABLE_WARNINGS_HEADER_INCLUDED
|
|
||||||
|
@ -17,8 +17,7 @@
|
|||||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
// Note: this file shall not have include guards or #pragma once.
|
||||||
#define OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
|
||||||
|
|
||||||
#ifdef SILENCE_EXTERNAL_WARNINGS
|
#ifdef SILENCE_EXTERNAL_WARNINGS
|
||||||
|
|
||||||
@ -55,6 +54,4 @@
|
|||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif // COMPATIBLE_COMPILER
|
#endif // COMPATIBLE_COMPILER
|
||||||
|
|
||||||
#endif
|
#endif // SILENCE_EXTERNAL_WARNINGS
|
||||||
|
|
||||||
#endif // OPM_REENABLE_WARNINGS_HEADER_INCLUDED
|
|
||||||
|
Loading…
Reference in New Issue
Block a user