diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-06 21:25:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-06 21:25:50 +0300 |
commit | 3e74131342c85f59110df276667b4ae23873a9bd (patch) | |
tree | bc8b3fbf67176f666e93dd3c0abd1eb914c3fd52 /tools/ci | |
parent | 58e1791240a07a609a2e8bdcaf428866c7e24f31 (diff) | |
download | plus-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-x | tools/ci/flags/gcc6.sh | 9 |
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" |