From: Michael Jeanson Date: Mon, 3 Apr 2023 18:40:19 +0000 (-0400) Subject: jjb: lttng-tools: disable -Wshadow on GCC 4.8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6843e673409fe66d79c90f3f96810e15e25e512d;p=lttng-ci.git jjb: lttng-tools: disable -Wshadow on GCC 4.8 Change-Id: I1abdfa179d5fad115fea0e3f58dfdb5a9b2b3b11 Signed-off-by: Michael Jeanson --- diff --git a/scripts/lttng-tools/build.sh b/scripts/lttng-tools/build.sh index 0476695..079de21 100755 --- a/scripts/lttng-tools/build.sh +++ b/scripts/lttng-tools/build.sh @@ -281,11 +281,11 @@ cygwin|cygwin64|msys32|msys64) ;; esac -# The missing-field-initializers warning code is very dumb in GCC 4.8 on -# SLES12 / EL7, disable it even if it's available. +# Some warning flags are very dumb in GCC 4.8 on SLES12 / EL7, disable them +# even if they are available. if [[ $platform = sles12sp5* ]] || [[ $platform = el7* ]]; then - CFLAGS="$CFLAGS -Wno-missing-field-initializers" - CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers" + CFLAGS="$CFLAGS -Wno-missing-field-initializers -Wno-shadow" + CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers -Wno-shadow" fi case "$test_type" in