From 3cb9abea149e5ad65999171eda22879a34dc7a22 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Sep 2017 21:41:39 +0300 Subject: Add new compiler flags for gcc snapshot. --- tools/ci/flags/gccsnapshot.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/ci/flags') 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" -- cgit v1.2.3-70-g09d2