From: Michael Jeanson Date: Fri, 17 Mar 2023 17:40:01 +0000 (-0400) Subject: jjb: lttng-tools: disable -Wmissing-field-initializers on el7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=29d9c2b25942c0c47698b2b45a48e72147adab18;p=lttng-ci.git jjb: lttng-tools: disable -Wmissing-field-initializers on el7 Change-Id: I96323cfe882d0bf8d7e0df877327b4edb59ff50d Signed-off-by: Michael Jeanson --- diff --git a/scripts/lttng-tools/build.sh b/scripts/lttng-tools/build.sh index 84367e0..42b4ee3 100755 --- a/scripts/lttng-tools/build.sh +++ b/scripts/lttng-tools/build.sh @@ -280,8 +280,8 @@ cygwin|cygwin64|msys32|msys64) esac # The missing-field-initializers warning code is very dumb in GCC 4.8 on -# SLES12, disable it even if it's available. -if [[ $platform = sles12sp5* ]]; then +# SLES12 / EL7, disable it even if it's available. +if [[ $platform = sles12sp5* ]] || [[ $platform = el7* ]]; then CFLAGS="$CFLAGS -Wno-missing-field-initializers" CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers" fi