summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-03 21:41:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-05 00:05:00 +0300
commit3cb9abea149e5ad65999171eda22879a34dc7a22 (patch)
tree03536bf0ea956f337ef1b04b271b6afafce4e376
parent92f77b1d8eb0922ad9c25c953654167ef0209002 (diff)
downloadplus-3cb9abea149e5ad65999171eda22879a34dc7a22.tar.gz
plus-3cb9abea149e5ad65999171eda22879a34dc7a22.tar.bz2
plus-3cb9abea149e5ad65999171eda22879a34dc7a22.tar.xz
plus-3cb9abea149e5ad65999171eda22879a34dc7a22.zip
Add new compiler flags for gcc snapshot.
-rwxr-xr-xtools/ci/flags/gccsnapshot.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/ci/flags/gccsnapshot.sh b/tools/ci/flags/gccsnapshot.sh
index 639e40a0c..c69e04bc2 100755
--- a/tools/ci/flags/gccsnapshot.sh
+++ b/tools/ci/flags/gccsnapshot.sh
@@ -125,6 +125,7 @@ export CXXFLAGS="${CXXFLAGS} -Wfree-nonheap-object"
# not for C++
#export CXXFLAGS="${CXXFLAGS} -Wfunction-elimination"
export CXXFLAGS="${CXXFLAGS} -Whsa"
+export CXXFLAGS="${CXXFLAGS} -Wif-not-aligned"
export CXXFLAGS="${CXXFLAGS} -Wignored-attributes"
export CXXFLAGS="${CXXFLAGS} -Wignored-qualifiers"
# not for C++
@@ -207,6 +208,7 @@ export CXXFLAGS="${CXXFLAGS} -Woverloaded-virtual"
#export CXXFLAGS="${CXXFLAGS} -Woverride-init-side-effects"
export CXXFLAGS="${CXXFLAGS} -Wpacked"
export CXXFLAGS="${CXXFLAGS} -Wpacked-bitfield-compat"
+export CXXFLAGS="${CXXFLAGS} -Wpacked-not-aligned"
# +++ may be need fix in future?
#export CXXFLAGS="${CXXFLAGS} -Wpadded"
export CXXFLAGS="${CXXFLAGS} -Wparentheses"