jjb: lttng-tools: disable -Wmissing-field-initializers on sles12sp5
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 25 Mar 2022 19:01:50 +0000 (15:01 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 25 Mar 2022 19:06:03 +0000 (15:06 -0400)
Change-Id: Idbad48052e76e03f5036e4ae8c88534899447264

scripts/lttng-tools/build.sh

index a41fbfb3d76d4b9741cc9baa4ef43a55dda6bc40..945426987f63260fcd6ad535d52b2e459f11536c 100755 (executable)
@@ -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"
This page took 0.024407 seconds and 4 git commands to generate.