diff options
Diffstat (limited to 'tools/ci/flags/gccsnapshot.sh')
-rwxr-xr-x | tools/ci/flags/gccsnapshot.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tools/ci/flags/gccsnapshot.sh b/tools/ci/flags/gccsnapshot.sh index 7297c3a8b..cc628a854 100755 --- a/tools/ci/flags/gccsnapshot.sh +++ b/tools/ci/flags/gccsnapshot.sh @@ -16,6 +16,12 @@ export CXXFLAGS="${CXXFLAGS} -Waggressive-loop-optimizations" #export CXXFLAGS="${CXXFLAGS} -Walign-commons" export CXXFLAGS="${CXXFLAGS} -Waligned-new=all" export CXXFLAGS="${CXXFLAGS} -Wall" +# for future usage? +#export CXXFLAGS="${CXXFLAGS} -Walloc-size-larger-than=N" +export CXXFLAGS="${CXXFLAGS} -Walloc-zero" +export CXXFLAGS="${CXXFLAGS} -Walloca" +#-Walloca already inlcude this +#export CXXFLAGS="${CXXFLAGS} -Walloca-larger-than=" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wampersand" #export CXXFLAGS="${CXXFLAGS} -Wargument-mismatch" @@ -78,6 +84,9 @@ export CXXFLAGS="${CXXFLAGS} -Wdisabled-optimization" export CXXFLAGS="${CXXFLAGS} -Wdiv-by-zero" # +++ need fix in future #export CXXFLAGS="${CXXFLAGS} -Wdouble-promotion" +export CXXFLAGS="${CXXFLAGS} -Wduplicated-branches" +# not for C++ +#export CXXFLAGS="${CXXFLAGS} -Wduplicate-decl-specifier" export CXXFLAGS="${CXXFLAGS} -Wduplicated-cond" # +++ too many warnings. may be used some times #export CXXFLAGS="${CXXFLAGS} -Weffc++" @@ -94,11 +103,12 @@ export CXXFLAGS="${CXXFLAGS} -Wextra" export CXXFLAGS="${CXXFLAGS} -Wformat" export CXXFLAGS="${CXXFLAGS} -Wformat-contains-nul" export CXXFLAGS="${CXXFLAGS} -Wformat-extra-args" -export CXXFLAGS="${CXXFLAGS} -Wformat-length=2" # +++ ignoring. probably need use some times #export CXXFLAGS="${CXXFLAGS} -Wformat-nonliteral" +export CXXFLAGS="${CXXFLAGS} -Wformat-overflow=2" export CXXFLAGS="${CXXFLAGS} -Wformat-security" export CXXFLAGS="${CXXFLAGS} -Wformat-signedness" +export CXXFLAGS="${CXXFLAGS} -Wformat-truncation=2" export CXXFLAGS="${CXXFLAGS} -Wformat-y2k" export CXXFLAGS="${CXXFLAGS} -Wformat-zero-length" #export CXXFLAGS="${CXXFLAGS} -Wformat=" @@ -112,6 +122,8 @@ export CXXFLAGS="${CXXFLAGS} -Wignored-qualifiers" export CXXFLAGS="${CXXFLAGS} -Wignored-attributes" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wimplicit" +#export CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough" +export CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=5" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-function-declaration" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-int" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-interface" @@ -195,6 +207,7 @@ export CXXFLAGS="${CXXFLAGS} -Wplacement-new" #export CXXFLAGS="${CXXFLAGS} -Wplacement-new=" export CXXFLAGS="${CXXFLAGS} -Wpmf-conversions" export CXXFLAGS="${CXXFLAGS} -Wpointer-arith" +export CXXFLAGS="${CXXFLAGS} -Wpointer-compare" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wpointer-sign" #export CXXFLAGS="${CXXFLAGS} -Wpointer-to-int-cast" @@ -207,6 +220,7 @@ export CXXFLAGS="${CXXFLAGS} -Wpsabi" #export CXXFLAGS="${CXXFLAGS} -Wrealloc-lhs" #export CXXFLAGS="${CXXFLAGS} -Wrealloc-lhs-all" export CXXFLAGS="${CXXFLAGS} -Wredundant-decls" +export CXXFLAGS="${CXXFLAGS} -Wregister" export CXXFLAGS="${CXXFLAGS} -Wreorder" export CXXFLAGS="${CXXFLAGS} -Wrestrict" export CXXFLAGS="${CXXFLAGS} -Wreturn-local-addr" @@ -241,6 +255,8 @@ export CXXFLAGS="${CXXFLAGS} -Wstrict-null-sentinel" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wstrict-prototypes" #export CXXFLAGS="${CXXFLAGS} -Wstrict-selector-match" +#export CXXFLAGS="${CXXFLAGS} -Wstringop-overflow" +export CXXFLAGS="${CXXFLAGS} -Wstringop-overflow=4" export CXXFLAGS="${CXXFLAGS} -Wsubobject-linkage" # +++ ignoring #export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=const" @@ -279,6 +295,8 @@ export CXXFLAGS="${CXXFLAGS} -Wtype-limits" #export CXXFLAGS="${CXXFLAGS} -Wundeclared-selector" export CXXFLAGS="${CXXFLAGS} -Wundef" # not for C++ +#export CXXFLAGS="${CXXFLAGS} -Wundefined-do-loop" +# not for C++ #export CXXFLAGS="${CXXFLAGS} -Wunderflow" export CXXFLAGS="${CXXFLAGS} -Wuninitialized" export CXXFLAGS="${CXXFLAGS} -Wunknown-pragmas" @@ -311,6 +329,7 @@ export CXXFLAGS="${CXXFLAGS} -Wvector-operation-performance" export CXXFLAGS="${CXXFLAGS} -Wvirtual-inheritance" export CXXFLAGS="${CXXFLAGS} -Wvirtual-move-assign" export CXXFLAGS="${CXXFLAGS} -Wvla" +#export CXXFLAGS="${CXXFLAGS} -Wvla-larger-than=N" export CXXFLAGS="${CXXFLAGS} -Wvolatile-register-var" export CXXFLAGS="${CXXFLAGS} -Wwrite-strings" export CXXFLAGS="${CXXFLAGS} -Wzero-as-null-pointer-constant" |