2018-03-09 17:17:11 +00:00
committed by Git OBS Bridge
parent 27b778ca74
commit 128b6e2e21

View File

@@ -590,7 +590,7 @@ export CFLAGS="$RPM_OPT_FLAGS"
# warn about unknown -Wno- flags, _except_ if there are other
# diagnostics as well, so let's force an uninitialized use warning
# and grep for the diagnostic about the -Wno flag:
if echo "int foo(void) { int a; return a;} " | \
if ! echo "int foo(void) { int a; return a;} " | \
$CC -x c -c - -o /dev/null -W -Wno-implicit-fallthrough 2>&1 | \
grep Wno-implici >/dev/null; then
CFLAGS="$CFLAGS -Wno-implicit-fallthrough"