Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
code: Fix GCC warning diagnostic pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaymar committed Sep 1, 2022
1 parent c8ad5dc commit 0258cc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/warning-disable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/warning-enable.hpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0258cc7

Please sign in to comment.