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 "-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

View file

@ -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