From fdf8230a80fa418e4b46dc489e5b2dda7901b55c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Sep 2019 03:27:15 +0300 Subject: Disable unsupported compiler flags for gcc-9 --- tools/ci/flags/gcc9.sh | 4 +++- tools/ci/flags/gccfedora.sh | 1 + tools/ci/flags/gccsnapshot.sh | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'tools/ci') diff --git a/tools/ci/flags/gcc9.sh b/tools/ci/flags/gcc9.sh index 807323ed4..b28cf7e69 100755 --- a/tools/ci/flags/gcc9.sh +++ b/tools/ci/flags/gcc9.sh @@ -116,7 +116,8 @@ export CXXFLAGS="${CXXFLAGS} -Wduplicated-cond" export CXXFLAGS="${CXXFLAGS} -Wempty-body" export CXXFLAGS="${CXXFLAGS} -Wendif-labels" export CXXFLAGS="${CXXFLAGS} -Wenum-compare" -export CXXFLAGS="${CXXFLAGS} -Werror-implicit-function-declaration" +#export CXXFLAGS="${CXXFLAGS} -Werror-implicit-function-declaration" + export CXXFLAGS="${CXXFLAGS} -Wexpansion-to-defined" export CXXFLAGS="${CXXFLAGS} -Wextra" export CXXFLAGS="${CXXFLAGS} -Wextra-semi" @@ -149,6 +150,7 @@ export CXXFLAGS="${CXXFLAGS} -Wignored-qualifiers" #export CXXFLAGS="${CXXFLAGS} -Wimplicit" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough" export CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=5" +# not for C++ #export CXXFLAGS="${CXXFLAGS} -Wimplicit-function-declaration" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-int" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-interface" diff --git a/tools/ci/flags/gccfedora.sh b/tools/ci/flags/gccfedora.sh index 4c9fc0829..3e462fbfd 100755 --- a/tools/ci/flags/gccfedora.sh +++ b/tools/ci/flags/gccfedora.sh @@ -133,6 +133,7 @@ export CXXFLAGS="${CXXFLAGS} -Wignored-qualifiers" #export CXXFLAGS="${CXXFLAGS} -Wimplicit" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough" export CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=5" +# not for C++ #export CXXFLAGS="${CXXFLAGS} -Wimplicit-function-declaration" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-int" #export CXXFLAGS="${CXXFLAGS} -Wimplicit-interface" diff --git a/tools/ci/flags/gccsnapshot.sh b/tools/ci/flags/gccsnapshot.sh index 0064079e4..52539b36e 100755 --- a/tools/ci/flags/gccsnapshot.sh +++ b/tools/ci/flags/gccsnapshot.sh @@ -105,7 +105,8 @@ export CXXFLAGS="${CXXFLAGS} -Wduplicated-cond" export CXXFLAGS="${CXXFLAGS} -Wempty-body" export CXXFLAGS="${CXXFLAGS} -Wendif-labels" export CXXFLAGS="${CXXFLAGS} -Wenum-compare" -export CXXFLAGS="${CXXFLAGS} -Werror-implicit-function-declaration" +# not for C++ +#export CXXFLAGS="${CXXFLAGS} -Werror-implicit-function-declaration" export CXXFLAGS="${CXXFLAGS} -Wexpansion-to-defined" export CXXFLAGS="${CXXFLAGS} -Wextra" export CXXFLAGS="${CXXFLAGS} -Wextra-semi" -- cgit v1.2.3-70-g09d2