Skip to content

Commit

Permalink
🔧 add more warning flags from GCC 10
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed May 28, 2020
1 parent 2edb5cb commit 53ef076
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ pedantic_gcc:
rm -fr build_pedantic
CXXFLAGS=" \
-std=c++11 \
-pedantic \
-Werror \
--all-warnings \
--extra-warnings \
-W \
-Wno-abi-tag \
-Waddress \
-Waddress-of-packed-member \
Expand Down Expand Up @@ -160,10 +164,13 @@ pedantic_gcc:
-Wbool-operation \
-Wbuiltin-declaration-mismatch \
-Wbuiltin-macro-redefined \
-Wc++0x-compat \
-Wc++11-compat \
-Wc++14-compat \
-Wc++17-compat \
-Wc++1z-compat \
-Wc++20-compat \
-Wc++2a-compat \
-Wcannot-profile \
-Wcast-align \
-Wcast-align=strict \
Expand All @@ -176,6 +183,7 @@ pedantic_gcc:
-Wclobbered \
-Wcomma-subscript \
-Wcomment \
-Wcomments \
-Wconditionally-supported \
-Wconversion \
-Wconversion-null \
Expand Down Expand Up @@ -294,6 +302,7 @@ pedantic_gcc:
-Wscalar-storage-order \
-Wsequence-point \
-Wshadow=compatible-local \
-Wshadow=global \
-Wshadow=local \
-Wshift-count-negative \
-Wshift-count-overflow \
Expand Down

0 comments on commit 53ef076

Please sign in to comment.