Skip to content

Commit

Permalink
Tweaking compiler pragmas yet again.
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterbrereton committed Mar 20, 2023
1 parent b3f359f commit e6043e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
23 changes: 9 additions & 14 deletions include/_clang_include_prefix.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wunknown-pragmas"

#pragma clang diagnostic ignored "-Wdeprecated-anon-enum-enum-conversion"
#pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
#pragma clang diagnostic ignored "-Wc++98-compat"
#pragma clang diagnostic ignored "-Wold-style-cast"
#pragma clang diagnostic ignored "-Wpadded"
#pragma clang diagnostic ignored "-Wreserved-identifier"
#pragma clang diagnostic ignored "-Wshadow-field-in-constructor"
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wunused-parameter"
#if __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wall"
#elif __GNUC__ // must follow clang (which defines both)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
#pragma GCC diagnostic ignored "-Wall"
#endif
6 changes: 5 additions & 1 deletion include/_clang_include_suffix.hpp
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#pragma clang diagnostic pop
#if __clang__
#pragma clang diagnostic pop
#elif __GNUC__ // must follow clang (which defines both)
#pragma GCC diagnostic pop
#endif

0 comments on commit e6043e5

Please sign in to comment.