⚗️ update warning flags

This commit is contained in:
Niels Lohmann 2021-08-17 10:21:39 +02:00
parent f1e63a8322
commit 568fad2925
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -94,11 +94,9 @@ set(CLANG_CXXFLAGS "-std=c++11 \
-Wno-c++98-compat \ -Wno-c++98-compat \
-Wno-c++98-compat-pedantic \ -Wno-c++98-compat-pedantic \
-Wno-deprecated-declarations \ -Wno-deprecated-declarations \
-Wno-documentation-unknown-command \
-Wno-exit-time-destructors \ -Wno-exit-time-destructors \
-Wno-extra-semi-stmt \ -Wno-extra-semi-stmt \
-Wno-padded \ -Wno-padded \
-Wno-range-loop-analysis \
-Wno-covered-switch-default \ -Wno-covered-switch-default \
-Wno-weak-vtables \ -Wno-weak-vtables \
") ")
@ -113,7 +111,7 @@ set(GCC_CXXFLAGS "-std=c++11 \
-Wno-abi-tag \ -Wno-abi-tag \
-Waddress \ -Waddress \
-Waddress-of-packed-member \ -Waddress-of-packed-member \
-Wno-aggregate-return \ -Waggregate-return \
-Waggressive-loop-optimizations \ -Waggressive-loop-optimizations \
-Waligned-new=all \ -Waligned-new=all \
-Wall \ -Wall \
@ -203,10 +201,16 @@ set(GCC_CXXFLAGS "-std=c++11 \
-Wextra-semi \ -Wextra-semi \
-Wfloat-conversion \ -Wfloat-conversion \
-Wfloat-equal \ -Wfloat-equal \
-Wformat-contains-nul \
-Wformat-diag \ -Wformat-diag \
-Wformat-extra-args \
-Wformat-nonliteral \
-Wformat-overflow=2 \ -Wformat-overflow=2 \
-Wformat-security \
-Wformat-signedness \ -Wformat-signedness \
-Wformat-truncation=2 \ -Wformat-truncation=2 \
-Wformat-y2k \
-Wformat-zero-length \
-Wformat=2 \ -Wformat=2 \
-Wframe-address \ -Wframe-address \
-Wfree-nonheap-object \ -Wfree-nonheap-object \
@ -277,7 +281,7 @@ set(GCC_CXXFLAGS "-std=c++11 \
-Wpragmas \ -Wpragmas \
-Wprio-ctor-dtor \ -Wprio-ctor-dtor \
-Wpsabi \ -Wpsabi \
-Wno-range-loop-construct \ -Wrange-loop-construct \
-Wredundant-decls \ -Wredundant-decls \
-Wredundant-move \ -Wredundant-move \
-Wredundant-tags \ -Wredundant-tags \