jjb: lttng-tools: disable -Wshadow on GCC 4.8
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 3 Apr 2023 18:40:19 +0000 (14:40 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 3 Apr 2023 18:40:29 +0000 (14:40 -0400)
Change-Id: I1abdfa179d5fad115fea0e3f58dfdb5a9b2b3b11
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-tools/build.sh

index 04766951549a5362a154c2a1f52e48c6afc9e25f..079de21030832a07793cea9ce70ebfdf065f0fbd 100755 (executable)
@@ -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
This page took 0.02452 seconds and 4 git commands to generate.