diff options
Diffstat (limited to 'tools/ci/flags/gccsnapshot.sh')
-rwxr-xr-x | tools/ci/flags/gccsnapshot.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/ci/flags/gccsnapshot.sh b/tools/ci/flags/gccsnapshot.sh index cc628a854..8acc95740 100755 --- a/tools/ci/flags/gccsnapshot.sh +++ b/tools/ci/flags/gccsnapshot.sh @@ -31,8 +31,7 @@ export CXXFLAGS="${CXXFLAGS} -Warray-bounds=2" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Warray-temporaries" #export CXXFLAGS="${CXXFLAGS} -Wassign-intercept" -# show warning for padding -#export CXXFLAGS="${CXXFLAGS} -Wattributes" +export CXXFLAGS="${CXXFLAGS} -Wattributes" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wbad-function-cast" export CXXFLAGS="${CXXFLAGS} -Wbool-compare" @@ -42,7 +41,9 @@ export CXXFLAGS="${CXXFLAGS} -Wbuiltin-macro-redefined" #export CXXFLAGS="${CXXFLAGS} -Wc++-compat" #export CXXFLAGS="${CXXFLAGS} -Wc++0x-compat" #export CXXFLAGS="${CXXFLAGS} -Wc++11-compat" -export CXXFLAGS="${CXXFLAGS} -Wc++14-compat" +#export CXXFLAGS="${CXXFLAGS} -Wc++14-compat" +#export CXXFLAGS="${CXXFLAGS} -Wc++17-compat" +export CXXFLAGS="${CXXFLAGS} -Wc++1z-compat" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wc-binding-type" #export CXXFLAGS="${CXXFLAGS} -Wc90-c99-compat" @@ -84,9 +85,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-branches" export CXXFLAGS="${CXXFLAGS} -Wduplicated-cond" # +++ too many warnings. may be used some times #export CXXFLAGS="${CXXFLAGS} -Weffc++" @@ -100,7 +101,7 @@ export CXXFLAGS="${CXXFLAGS} -Wextra" #export CXXFLAGS="${CXXFLAGS} -Wfloat-conversion" # +++ need fix in future #export CXXFLAGS="${CXXFLAGS} -Wfloat-equal" -export CXXFLAGS="${CXXFLAGS} -Wformat" +export CXXFLAGS="${CXXFLAGS} -Wformat=1" export CXXFLAGS="${CXXFLAGS} -Wformat-contains-nul" export CXXFLAGS="${CXXFLAGS} -Wformat-extra-args" # +++ ignoring. probably need use some times @@ -118,8 +119,8 @@ export CXXFLAGS="${CXXFLAGS} -Wfree-nonheap-object" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wfunction-elimination" export CXXFLAGS="${CXXFLAGS} -Whsa" -export CXXFLAGS="${CXXFLAGS} -Wignored-qualifiers" export CXXFLAGS="${CXXFLAGS} -Wignored-attributes" +export CXXFLAGS="${CXXFLAGS} -Wignored-qualifiers" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wimplicit" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough" @@ -177,6 +178,7 @@ export CXXFLAGS="${CXXFLAGS} -Wnarrowing" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wnested-externs" export CXXFLAGS="${CXXFLAGS} -Wnoexcept" +export CXXFLAGS="${CXXFLAGS} -Wnoexcept-type" export CXXFLAGS="${CXXFLAGS} -Wnon-template-friend" export CXXFLAGS="${CXXFLAGS} -Wnon-virtual-dtor" export CXXFLAGS="${CXXFLAGS} -Wnonnull" @@ -185,8 +187,7 @@ export CXXFLAGS="${CXXFLAGS} -Wnonnull-compare" export CXXFLAGS="${CXXFLAGS} -Wnormalized=nfkc" export CXXFLAGS="${CXXFLAGS} -Wnull-dereference" export CXXFLAGS="${CXXFLAGS} -Wodr" -# probably need fix it -#export CXXFLAGS="${CXXFLAGS} -Wold-style-cast" +export CXXFLAGS="${CXXFLAGS} -Wold-style-cast" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wold-style-declaration" #export CXXFLAGS="${CXXFLAGS} -Wold-style-definition" @@ -254,9 +255,8 @@ export CXXFLAGS="${CXXFLAGS} -Wstrict-null-sentinel" #export CXXFLAGS="${CXXFLAGS} -Wstrict-overflow=" # 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} -Wstrict-selector-match" export CXXFLAGS="${CXXFLAGS} -Wsubobject-linkage" # +++ ignoring #export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=const" @@ -300,6 +300,7 @@ export CXXFLAGS="${CXXFLAGS} -Wundef" #export CXXFLAGS="${CXXFLAGS} -Wunderflow" export CXXFLAGS="${CXXFLAGS} -Wuninitialized" export CXXFLAGS="${CXXFLAGS} -Wunknown-pragmas" +export CXXFLAGS="${CXXFLAGS} -Wunreachable-code" # +++ may be try use in future? #export CXXFLAGS="${CXXFLAGS} -Wunsafe-loop-optimizations" # not for C++ @@ -307,7 +308,6 @@ export CXXFLAGS="${CXXFLAGS} -Wunknown-pragmas" export CXXFLAGS="${CXXFLAGS} -Wunused" export CXXFLAGS="${CXXFLAGS} -Wunused-but-set-parameter" export CXXFLAGS="${CXXFLAGS} -Wunused-but-set-variable" -export CXXFLAGS="${CXXFLAGS} -Wunreachable-code" export CXXFLAGS="${CXXFLAGS} -Wunused-const-variable=1" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wunused-dummy-argument" @@ -329,7 +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} -Wvla-larger-than=" export CXXFLAGS="${CXXFLAGS} -Wvolatile-register-var" export CXXFLAGS="${CXXFLAGS} -Wwrite-strings" export CXXFLAGS="${CXXFLAGS} -Wzero-as-null-pointer-constant" |