ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | Sun Mar 30 17:26:05 2025 +0200| [890b8da1ce27fd365eaffefc7efcbadae9f01f2a] | committer: Andreas Rheinhardt
configure: Allow mixing declarations and statements This C90 rule forces us to use a too big scope and should therefore be dropped. Given that we already require C11, all supported compilers can handle mixed declarations and statements just fine. Reviewed-by: Zhao Zhili <quinkblack-at-foxmail....@ffmpeg.org> Reviewed-by: Marvin Scholz <epira...@gmail.com> Reviewed-by: Michael Niedermayer <mich...@niedermayer.cc> Reviewed-by: softworkz . <softworkz-at-hotmail....@ffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=890b8da1ce27fd365eaffefc7efcbadae9f01f2a --- configure | 5 ----- doc/developer.texi | 3 --- 2 files changed, 8 deletions(-) diff --git a/configure b/configure index fb79b497ce..bd4f872376 100755 --- a/configure +++ b/configure @@ -7467,7 +7467,6 @@ fi enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel" # add some useful compiler flags if supported -check_cflags -Wdeclaration-after-statement check_cflags -Wall check_cflags -Wdisabled-optimization check_cflags -Wpointer-arith @@ -7504,10 +7503,6 @@ 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 diff --git a/doc/developer.texi b/doc/developer.texi index 757e0f0ac1..108558b9e0 100644 --- a/doc/developer.texi +++ b/doc/developer.texi @@ -70,9 +70,6 @@ variable-length arrays; @item complex numbers; - -@item -mixed statements and declarations. @end itemize @subsection SIMD/DSP _______________________________________________ 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".