jjb: babeltrace: disable spurious warnings on GCC 4.8
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 4 Mar 2024 20:06:13 +0000 (15:06 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 4 Mar 2024 20:08:14 +0000 (15:08 -0500)
Change-Id: Ia94b50680bf89cc104acb52be4d278d6c14dee02
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/babeltrace/build.sh

index d7c79fbffdc49a754f6b10ecdb13a373df59eef1..e09324cbc35cdb48b2bbb68f22b8e44fc5cf7f28 100755 (executable)
@@ -208,6 +208,13 @@ freebsd*)
     ;;
 esac
 
+# 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 -Wno-shadow"
+    CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers -Wno-shadow"
+fi
+
 # Print build env details
 print_header "Build environment details"
 print_hardware || true
This page took 0.023507 seconds and 4 git commands to generate.