From: Michael Jeanson Date: Fri, 25 Mar 2022 19:01:50 +0000 (-0400) Subject: jjb: lttng-tools: disable -Wmissing-field-initializers on sles12sp5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fdb6646037827f46233dbe7c12d025217c8483a9;p=lttng-ci.git jjb: lttng-tools: disable -Wmissing-field-initializers on sles12sp5 Change-Id: Idbad48052e76e03f5036e4ae8c88534899447264 --- diff --git a/scripts/lttng-tools/build.sh b/scripts/lttng-tools/build.sh index a41fbfb..9454269 100755 --- a/scripts/lttng-tools/build.sh +++ b/scripts/lttng-tools/build.sh @@ -151,6 +151,7 @@ export BABELTRACE_PLUGIN_PATH="$DEPS_LIB/babeltrace2/plugins/" export LIBBABELTRACE2_PLUGIN_PROVIDER_DIR="$DEPS_LIB/babeltrace2/plugin-providers/" export CFLAGS="-g -O2" +export CXXFLAGS="-g -O2" # Set compiler variables case "$cc" in @@ -282,6 +283,13 @@ 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 [ "$arch" = "sles12sp5" ]; then + CFLAGS="$CFLAGS -Wno-missing-field-initializers" + CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers" +fi + case "$test_type" in full) LTTNG_TOOLS_RUN_TESTS_LONG_REGRESSION="yes"