ffmpeg | branch: master | Marvin Scholz <epira...@gmail.com> | Thu Sep 26 01:43:44 2024 +0200| [81ca85a0872b456e02e770db2aa79c8de3de7f3b] | committer: Zhao Zhili
configure: allow mixed declarations and code for Objective-C Mixing declarations and code is quite common in Objective-C (as can be seen by the number of warnings we have for this in Objective-C files) and forcing to not do it usually results in worse code, with unnecessary widely scoped variables, which in turn makes variable shadowing and accidentally using the wrong variable more common and harder to notice. Signed-off-by: Zhao Zhili <zhiliz...@tencent.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=81ca85a0872b456e02e770db2aa79c8de3de7f3b --- configure | 4 ++++ 1 file changed, 4 insertions(+) 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 _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".