summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-27 23:48:43 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-27 23:48:43 +0300
commitec0216cdd13aa89aba5da22bad3ef723fa27f6fb (patch)
tree12fa423cac0d08eef24ce58c47a0c12e39714730 /tools
parent7d3f7bf81b0df19e19451eae3a2cd1b053189b2e (diff)
downloadmv-ec0216cdd13aa89aba5da22bad3ef723fa27f6fb.tar.gz
mv-ec0216cdd13aa89aba5da22bad3ef723fa27f6fb.tar.bz2
mv-ec0216cdd13aa89aba5da22bad3ef723fa27f6fb.tar.xz
mv-ec0216cdd13aa89aba5da22bad3ef723fa27f6fb.zip
Fix gcc snapshot ci flags.
Also add new missing flags.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ci/flags/gccsnapshot.sh21
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"