From 6843e673409fe66d79c90f3f96810e15e25e512d Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 3 Apr 2023 14:40:19 -0400 Subject: [PATCH] jjb: lttng-tools: disable -Wshadow on GCC 4.8 Change-Id: I1abdfa179d5fad115fea0e3f58dfdb5a9b2b3b11 Signed-off-by: Michael Jeanson --- scripts/lttng-tools/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.34.1