From 29d9c2b25942c0c47698b2b45a48e72147adab18 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 17 Mar 2023 13:40:01 -0400 Subject: [PATCH] jjb: lttng-tools: disable -Wmissing-field-initializers on el7 Change-Id: I96323cfe882d0bf8d7e0df877327b4edb59ff50d Signed-off-by: Michael Jeanson --- scripts/lttng-tools/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1