Change-Id: I1abdfa179d5fad115fea0e3f58dfdb5a9b2b3b11
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
;;
esac
-# The missing-field-initializers warning code is very dumb in GCC 4.8 on
-# SLES12 / EL7, disable it even if it's available.
+# 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"
- CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers"
+ CFLAGS="$CFLAGS -Wno-missing-field-initializers -Wno-shadow"
+ CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers -Wno-shadow"
fi
case "$test_type" in