summaryrefslogtreecommitdiff
path: root/tools/ci
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-06 21:25:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-06 21:25:50 +0300
commit3e74131342c85f59110df276667b4ae23873a9bd (patch)
treebc8b3fbf67176f666e93dd3c0abd1eb914c3fd52 /tools/ci
parent58e1791240a07a609a2e8bdcaf428866c7e24f31 (diff)
downloadplus-3e74131342c85f59110df276667b4ae23873a9bd.tar.gz
plus-3e74131342c85f59110df276667b4ae23873a9bd.tar.bz2
plus-3e74131342c85f59110df276667b4ae23873a9bd.tar.xz
plus-3e74131342c85f59110df276667b4ae23873a9bd.zip
Use same gcc6 warning flags for build scripts and ci.
Diffstat (limited to 'tools/ci')
-rwxr-xr-xtools/ci/flags/gcc6.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/ci/flags/gcc6.sh b/tools/ci/flags/gcc6.sh
index c245ac72b..97b05f9ab 100755
--- a/tools/ci/flags/gcc6.sh
+++ b/tools/ci/flags/gcc6.sh
@@ -23,7 +23,7 @@ export CXXFLAGS="${CXXFLAGS} -Warray-bounds=2"
# not for C++
#export CXXFLAGS="${CXXFLAGS} -Warray-temporaries"
#export CXXFLAGS="${CXXFLAGS} -Wassign-intercept"
-# show warning for padding
+# show warnings for padding
#export CXXFLAGS="${CXXFLAGS} -Wattributes"
# not for C++
#export CXXFLAGS="${CXXFLAGS} -Wbad-function-cast"
@@ -86,7 +86,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
@@ -223,12 +223,11 @@ export CXXFLAGS="${CXXFLAGS} -Wsizeof-array-argument"
export CXXFLAGS="${CXXFLAGS} -Wsizeof-pointer-memaccess"
export CXXFLAGS="${CXXFLAGS} -Wstack-protector"
#export CXXFLAGS="${CXXFLAGS} -Wstack-usage="
-export CXXFLAGS="${CXXFLAGS} -Wstrict-aliasing"
+export CXXFLAGS="${CXXFLAGS} -Wstrict-aliasing=2"
#export CXXFLAGS="${CXXFLAGS} -Wstrict-aliasing="
export CXXFLAGS="${CXXFLAGS} -Wstrict-null-sentinel"
-# used before
#export CXXFLAGS="${CXXFLAGS} -Wstrict-overflow"
-#export CXXFLAGS="${CXXFLAGS} -Wstrict-overflow="
+export CXXFLAGS="${CXXFLAGS} -Wstrict-overflow=1"
# not for C++
#export CXXFLAGS="${CXXFLAGS} -Wstrict-prototypes"
#export CXXFLAGS="${CXXFLAGS} -Wstrict-selector-match"