From 78e5c10a74b5d1d514241b46c3dd005f732a54ca Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 1 Sep 2022 16:33:21 +0200 Subject: [PATCH] code: Fix GCC warning diagnostic pragmas --- source/warning-disable.hpp | 6 +++--- source/warning-enable.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/warning-disable.hpp b/source/warning-disable.hpp index f06bbf7e..37bf729d 100644 --- a/source/warning-disable.hpp +++ b/source/warning-disable.hpp @@ -3,9 +3,9 @@ #pragma clang diagnostic ignored "-Wall" #pragma clang diagnostic ignored "-Wextra" #elif defined(__GNUC__) || defined(__GNUG__) -#pragma gcc diagnostic push -#pragma gcc diagnostic ignored "-Wall" -#pragma gcc diagnostic ignored "-Wextra" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wall" +#pragma GCC diagnostic ignored "-Wextra" #elif defined(_MSC_VER) #pragma warning(push, 0) #else diff --git a/source/warning-enable.hpp b/source/warning-enable.hpp index 6afcf286..0bb2fdf3 100644 --- a/source/warning-enable.hpp +++ b/source/warning-enable.hpp @@ -1,7 +1,7 @@ #if defined(__clang__) #pragma clang diagnostic pop #elif defined(__GNUC__) || defined(__GNUG__) -#pragma gcc diagnostic pop +#pragma GCC diagnostic pop #elif defined(_MSC_VER) #pragma warning(pop) #else