diff --git a/configure b/configure index 87d03897fa..45663ee926 100755 --- a/configure +++ b/configure @@ -7500,6 +7500,10 @@ check_disable_warning -Wno-bool-operation check_disable_warning -Wno-char-subscripts check_disable_warning -Wno-implicit-const-int-float-conversion +# Disable mixed decl and code warning for Objective-C +test_objcflags $unknown_warning_flags '-Wdeclaration-after-statement' && + add_objcflags '-Wno-declaration-after-statement' + check_disable_warning_headers(){ warning_flag=-W${1#-Wno-} test_cflags $warning_flag && add_cflags_headers $1