From 56bb7a17e0df39fc9a8e7fe2c7c4c53d2a8d47ed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Jan 2018 17:10:55 +0300 Subject: Disable warning -Wzero-as-null-pointer-constant in clang 6. Disabled due disable no way to disable it only in libs. --- tools/ci/jobs/clang60.sh | 3 ++- tools/ci/jobs/clang60_tests.sh | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'tools/ci') diff --git a/tools/ci/jobs/clang60.sh b/tools/ci/jobs/clang60.sh index db12c82c5..2fe837b08 100755 --- a/tools/ci/jobs/clang60.sh +++ b/tools/ci/jobs/clang60.sh @@ -15,6 +15,7 @@ export LOGFILE=clang60.log source ./tools/ci/scripts/init.sh # need fix -Wshadow-field +# add -Wno-zero-as-null-pointer-constant due clang bug export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign-conversion \ -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables \ @@ -24,7 +25,7 @@ export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign -Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \ -Wno-variadic-macros -Wno-double-promotion -Wno-attributes -Wno-shadow-field \ -Wpointer-bool-conversion -fno-omit-frame-pointer -Wno-c++98-compat-pedantic \ --Wno-implicit-fallthrough \ +-Wno-implicit-fallthrough -Wno-zero-as-null-pointer-constant \ -ggdb3 $POST_CXXFLAGS" do_init diff --git a/tools/ci/jobs/clang60_tests.sh b/tools/ci/jobs/clang60_tests.sh index 065d8bfbd..dc87d109c 100755 --- a/tools/ci/jobs/clang60_tests.sh +++ b/tools/ci/jobs/clang60_tests.sh @@ -15,6 +15,7 @@ export LOGFILE=clang60.log source ./tools/ci/scripts/init.sh # need fix -Wshadow-field +# add -Wno-zero-as-null-pointer-constant due clang bug export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign-conversion \ -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables \ @@ -23,7 +24,9 @@ export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign -Wno-disabled-macro-expansion -Wno-format-nonliteral \ -Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \ -Wno-variadic-macros -Wno-double-promotion -Wno-attributes -Wno-shadow-field \ --Wpointer-bool-conversion -fno-omit-frame-pointer -ggdb3 $POST_CXXFLAGS" +-Wpointer-bool-conversion -fno-omit-frame-pointer \ +-Wno-zero-as-null-pointer-constant \ +-ggdb3 $POST_CXXFLAGS" do_init run_configure --enable-unittests=yes $* -- cgit v1.2.3-70-g09d2