code: Fix GCC warning diagnostic pragmas

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2022-09-01 16:33:21 +02:00
parent 6c8578e555
commit 78e5c10a74
2 changed files with 4 additions and 4 deletions

View file

@ -3,9 +3,9 @@
#pragma clang diagnostic ignored "-Wall" #pragma clang diagnostic ignored "-Wall"
#pragma clang diagnostic ignored "-Wextra" #pragma clang diagnostic ignored "-Wextra"
#elif defined(__GNUC__) || defined(__GNUG__) #elif defined(__GNUC__) || defined(__GNUG__)
#pragma gcc diagnostic push #pragma GCC diagnostic push
#pragma gcc diagnostic ignored "-Wall" #pragma GCC diagnostic ignored "-Wall"
#pragma gcc diagnostic ignored "-Wextra" #pragma GCC diagnostic ignored "-Wextra"
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
#pragma warning(push, 0) #pragma warning(push, 0)
#else #else

View file

@ -1,7 +1,7 @@
#if defined(__clang__) #if defined(__clang__)
#pragma clang diagnostic pop #pragma clang diagnostic pop
#elif defined(__GNUC__) || defined(__GNUG__) #elif defined(__GNUC__) || defined(__GNUG__)
#pragma gcc diagnostic pop #pragma GCC diagnostic pop
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
#pragma warning(pop) #pragma warning(pop)
#else #else