From 65bccb4fc48707a8bcccedaa57a87468ad8b7349 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Jan 2017 01:43:42 +0300 Subject: Add compiler flag -Wno-attributes for prevent warnings about packed attributes. --- tools/ci/flags/gcc6.sh | 3 ++- tools/ci/flags/gccsnapshot.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/ci/flags') diff --git a/tools/ci/flags/gcc6.sh b/tools/ci/flags/gcc6.sh index 095a878ab..c245ac72b 100755 --- a/tools/ci/flags/gcc6.sh +++ b/tools/ci/flags/gcc6.sh @@ -23,7 +23,8 @@ export CXXFLAGS="${CXXFLAGS} -Warray-bounds=2" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Warray-temporaries" #export CXXFLAGS="${CXXFLAGS} -Wassign-intercept" -export CXXFLAGS="${CXXFLAGS} -Wattributes" +# show warning for padding +#export CXXFLAGS="${CXXFLAGS} -Wattributes" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wbad-function-cast" export CXXFLAGS="${CXXFLAGS} -Wbool-compare" diff --git a/tools/ci/flags/gccsnapshot.sh b/tools/ci/flags/gccsnapshot.sh index 0a14cfb02..7297c3a8b 100755 --- a/tools/ci/flags/gccsnapshot.sh +++ b/tools/ci/flags/gccsnapshot.sh @@ -25,7 +25,8 @@ export CXXFLAGS="${CXXFLAGS} -Warray-bounds=2" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Warray-temporaries" #export CXXFLAGS="${CXXFLAGS} -Wassign-intercept" -export CXXFLAGS="${CXXFLAGS} -Wattributes" +# show warning for padding +#export CXXFLAGS="${CXXFLAGS} -Wattributes" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wbad-function-cast" export CXXFLAGS="${CXXFLAGS} -Wbool-compare" -- cgit v1.2.3-70-g09d2