🔧 add more warning flags from GCC 10
This commit is contained in:
parent
2edb5cb999
commit
53ef076715
1 changed files with 9 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -124,7 +124,11 @@ pedantic_gcc:
|
||||||
rm -fr build_pedantic
|
rm -fr build_pedantic
|
||||||
CXXFLAGS=" \
|
CXXFLAGS=" \
|
||||||
-std=c++11 \
|
-std=c++11 \
|
||||||
|
-pedantic \
|
||||||
-Werror \
|
-Werror \
|
||||||
|
--all-warnings \
|
||||||
|
--extra-warnings \
|
||||||
|
-W \
|
||||||
-Wno-abi-tag \
|
-Wno-abi-tag \
|
||||||
-Waddress \
|
-Waddress \
|
||||||
-Waddress-of-packed-member \
|
-Waddress-of-packed-member \
|
||||||
|
@ -160,10 +164,13 @@ pedantic_gcc:
|
||||||
-Wbool-operation \
|
-Wbool-operation \
|
||||||
-Wbuiltin-declaration-mismatch \
|
-Wbuiltin-declaration-mismatch \
|
||||||
-Wbuiltin-macro-redefined \
|
-Wbuiltin-macro-redefined \
|
||||||
|
-Wc++0x-compat \
|
||||||
-Wc++11-compat \
|
-Wc++11-compat \
|
||||||
-Wc++14-compat \
|
-Wc++14-compat \
|
||||||
-Wc++17-compat \
|
-Wc++17-compat \
|
||||||
|
-Wc++1z-compat \
|
||||||
-Wc++20-compat \
|
-Wc++20-compat \
|
||||||
|
-Wc++2a-compat \
|
||||||
-Wcannot-profile \
|
-Wcannot-profile \
|
||||||
-Wcast-align \
|
-Wcast-align \
|
||||||
-Wcast-align=strict \
|
-Wcast-align=strict \
|
||||||
|
@ -176,6 +183,7 @@ pedantic_gcc:
|
||||||
-Wclobbered \
|
-Wclobbered \
|
||||||
-Wcomma-subscript \
|
-Wcomma-subscript \
|
||||||
-Wcomment \
|
-Wcomment \
|
||||||
|
-Wcomments \
|
||||||
-Wconditionally-supported \
|
-Wconditionally-supported \
|
||||||
-Wconversion \
|
-Wconversion \
|
||||||
-Wconversion-null \
|
-Wconversion-null \
|
||||||
|
@ -294,6 +302,7 @@ pedantic_gcc:
|
||||||
-Wscalar-storage-order \
|
-Wscalar-storage-order \
|
||||||
-Wsequence-point \
|
-Wsequence-point \
|
||||||
-Wshadow=compatible-local \
|
-Wshadow=compatible-local \
|
||||||
|
-Wshadow=global \
|
||||||
-Wshadow=local \
|
-Wshadow=local \
|
||||||
-Wshift-count-negative \
|
-Wshift-count-negative \
|
||||||
-Wshift-count-overflow \
|
-Wshift-count-overflow \
|
||||||
|
|
Loading…
Reference in a new issue