🔧 adjust flags for GCC 11.0.0 20210110 (experimental)
This commit is contained in:
parent
9dd1d50bf3
commit
2efc29540e
@ -71,6 +71,7 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
--all-warnings \
|
--all-warnings \
|
||||||
--extra-warnings \
|
--extra-warnings \
|
||||||
-W \
|
-W \
|
||||||
|
-WNSObject-attribute \
|
||||||
-Wno-abi-tag \
|
-Wno-abi-tag \
|
||||||
-Waddress \
|
-Waddress \
|
||||||
-Waddress-of-packed-member \
|
-Waddress-of-packed-member \
|
||||||
@ -86,19 +87,25 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wanalyzer-file-leak \
|
-Wanalyzer-file-leak \
|
||||||
-Wanalyzer-free-of-non-heap \
|
-Wanalyzer-free-of-non-heap \
|
||||||
-Wanalyzer-malloc-leak \
|
-Wanalyzer-malloc-leak \
|
||||||
|
-Wanalyzer-mismatching-deallocation \
|
||||||
-Wanalyzer-null-argument \
|
-Wanalyzer-null-argument \
|
||||||
-Wanalyzer-null-dereference \
|
-Wanalyzer-null-dereference \
|
||||||
-Wanalyzer-possible-null-argument \
|
-Wanalyzer-possible-null-argument \
|
||||||
-Wanalyzer-possible-null-dereference \
|
-Wanalyzer-possible-null-dereference \
|
||||||
|
-Wanalyzer-shift-count-negative \
|
||||||
|
-Wanalyzer-shift-count-overflow \
|
||||||
-Wanalyzer-stale-setjmp-buffer \
|
-Wanalyzer-stale-setjmp-buffer \
|
||||||
-Wanalyzer-tainted-array-index \
|
-Wanalyzer-tainted-array-index \
|
||||||
-Wanalyzer-too-complex \
|
-Wanalyzer-too-complex \
|
||||||
-Wanalyzer-unsafe-call-within-signal-handler \
|
-Wanalyzer-unsafe-call-within-signal-handler \
|
||||||
-Wanalyzer-use-after-free \
|
-Wanalyzer-use-after-free \
|
||||||
-Wanalyzer-use-of-pointer-in-stale-stack-frame \
|
-Wanalyzer-use-of-pointer-in-stale-stack-frame \
|
||||||
|
-Wanalyzer-write-to-const \
|
||||||
|
-Wanalyzer-write-to-string-literal \
|
||||||
-Warith-conversion \
|
-Warith-conversion \
|
||||||
-Warray-bounds \
|
-Warray-bounds \
|
||||||
-Warray-bounds=2 \
|
-Warray-bounds=2 \
|
||||||
|
-Warray-parameter=2 \
|
||||||
-Wattribute-alias=2 \
|
-Wattribute-alias=2 \
|
||||||
-Wattribute-warning \
|
-Wattribute-warning \
|
||||||
-Wattributes \
|
-Wattributes \
|
||||||
@ -131,6 +138,7 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wconversion-null \
|
-Wconversion-null \
|
||||||
-Wcoverage-mismatch \
|
-Wcoverage-mismatch \
|
||||||
-Wcpp \
|
-Wcpp \
|
||||||
|
-Wctad-maybe-unsupported \
|
||||||
-Wctor-dtor-privacy \
|
-Wctor-dtor-privacy \
|
||||||
-Wdangling-else \
|
-Wdangling-else \
|
||||||
-Wdate-time \
|
-Wdate-time \
|
||||||
@ -140,6 +148,8 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wdeprecated-copy \
|
-Wdeprecated-copy \
|
||||||
-Wdeprecated-copy-dtor \
|
-Wdeprecated-copy-dtor \
|
||||||
-Wdeprecated-declarations \
|
-Wdeprecated-declarations \
|
||||||
|
-Wdeprecated-enum-enum-conversion \
|
||||||
|
-Wdeprecated-enum-float-conversion \
|
||||||
-Wdisabled-optimization \
|
-Wdisabled-optimization \
|
||||||
-Wdiv-by-zero \
|
-Wdiv-by-zero \
|
||||||
-Wdouble-promotion \
|
-Wdouble-promotion \
|
||||||
@ -149,17 +159,12 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wempty-body \
|
-Wempty-body \
|
||||||
-Wendif-labels \
|
-Wendif-labels \
|
||||||
-Wenum-compare \
|
-Wenum-compare \
|
||||||
|
-Wenum-conversion \
|
||||||
-Wexpansion-to-defined \
|
-Wexpansion-to-defined \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-Wextra-semi \
|
-Wextra-semi \
|
||||||
-Wfloat-conversion \
|
-Wfloat-conversion \
|
||||||
-Wfloat-equal \
|
-Wfloat-equal \
|
||||||
-Wformat -Wformat-contains-nul \
|
|
||||||
-Wformat -Wformat-extra-args \
|
|
||||||
-Wformat -Wformat-nonliteral \
|
|
||||||
-Wformat -Wformat-security \
|
|
||||||
-Wformat -Wformat-y2k \
|
|
||||||
-Wformat -Wformat-zero-length \
|
|
||||||
-Wformat-diag \
|
-Wformat-diag \
|
||||||
-Wformat-overflow=2 \
|
-Wformat-overflow=2 \
|
||||||
-Wformat-signedness \
|
-Wformat-signedness \
|
||||||
@ -192,6 +197,8 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wmemset-elt-size \
|
-Wmemset-elt-size \
|
||||||
-Wmemset-transposed-args \
|
-Wmemset-transposed-args \
|
||||||
-Wmisleading-indentation \
|
-Wmisleading-indentation \
|
||||||
|
-Wmismatched-dealloc \
|
||||||
|
-Wmismatched-new-delete \
|
||||||
-Wmismatched-tags \
|
-Wmismatched-tags \
|
||||||
-Wmissing-attributes \
|
-Wmissing-attributes \
|
||||||
-Wmissing-braces \
|
-Wmissing-braces \
|
||||||
@ -210,7 +217,6 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wnon-virtual-dtor \
|
-Wnon-virtual-dtor \
|
||||||
-Wnonnull \
|
-Wnonnull \
|
||||||
-Wnonnull-compare \
|
-Wnonnull-compare \
|
||||||
-Wnonportable-cfstrings \
|
|
||||||
-Wnormalized=nfkc \
|
-Wnormalized=nfkc \
|
||||||
-Wnull-dereference \
|
-Wnull-dereference \
|
||||||
-Wodr \
|
-Wodr \
|
||||||
@ -233,6 +239,7 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wpragmas \
|
-Wpragmas \
|
||||||
-Wprio-ctor-dtor \
|
-Wprio-ctor-dtor \
|
||||||
-Wpsabi \
|
-Wpsabi \
|
||||||
|
-Wno-range-loop-construct \
|
||||||
-Wredundant-decls \
|
-Wredundant-decls \
|
||||||
-Wredundant-move \
|
-Wredundant-move \
|
||||||
-Wredundant-tags \
|
-Wredundant-tags \
|
||||||
@ -255,6 +262,7 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wsign-promo \
|
-Wsign-promo \
|
||||||
-Wsized-deallocation \
|
-Wsized-deallocation \
|
||||||
-Wsizeof-array-argument \
|
-Wsizeof-array-argument \
|
||||||
|
-Wsizeof-array-div \
|
||||||
-Wsizeof-pointer-div \
|
-Wsizeof-pointer-div \
|
||||||
-Wsizeof-pointer-memaccess \
|
-Wsizeof-pointer-memaccess \
|
||||||
-Wstack-protector \
|
-Wstack-protector \
|
||||||
@ -264,8 +272,8 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wstrict-overflow \
|
-Wstrict-overflow \
|
||||||
-Wstrict-overflow=5 \
|
-Wstrict-overflow=5 \
|
||||||
-Wstring-compare \
|
-Wstring-compare \
|
||||||
-Wstringop-overflow \
|
|
||||||
-Wstringop-overflow=4 \
|
-Wstringop-overflow=4 \
|
||||||
|
-Wstringop-overread \
|
||||||
-Wstringop-truncation \
|
-Wstringop-truncation \
|
||||||
-Wsubobject-linkage \
|
-Wsubobject-linkage \
|
||||||
-Wsuggest-attribute=cold \
|
-Wsuggest-attribute=cold \
|
||||||
@ -291,6 +299,7 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wterminate \
|
-Wterminate \
|
||||||
-Wtrampolines \
|
-Wtrampolines \
|
||||||
-Wtrigraphs \
|
-Wtrigraphs \
|
||||||
|
-Wtsan \
|
||||||
-Wtype-limits \
|
-Wtype-limits \
|
||||||
-Wundef \
|
-Wundef \
|
||||||
-Wuninitialized \
|
-Wuninitialized \
|
||||||
@ -309,13 +318,15 @@ set(GCC_CXXFLAGS "-std=c++11 \
|
|||||||
-Wunused-result \
|
-Wunused-result \
|
||||||
-Wunused-value \
|
-Wunused-value \
|
||||||
-Wunused-variable \
|
-Wunused-variable \
|
||||||
-Wuseless-cast \
|
-Wno-useless-cast \
|
||||||
-Wvarargs \
|
-Wvarargs \
|
||||||
-Wvariadic-macros \
|
-Wvariadic-macros \
|
||||||
-Wvector-operation-performance \
|
-Wvector-operation-performance \
|
||||||
|
-Wvexing-parse \
|
||||||
-Wvirtual-inheritance \
|
-Wvirtual-inheritance \
|
||||||
-Wvirtual-move-assign \
|
-Wvirtual-move-assign \
|
||||||
-Wvla \
|
-Wvla \
|
||||||
|
-Wvla-parameter \
|
||||||
-Wvolatile \
|
-Wvolatile \
|
||||||
-Wvolatile-register-var \
|
-Wvolatile-register-var \
|
||||||
-Wwrite-strings \
|
-Wwrite-strings \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user