diff --git a/source/warning-disable.hpp b/source/warning-disable.hpp index f06bbf7ed8..37bf729da7 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 6afcf28689..0bb2fdf396 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