1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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.com@ffmpeg.org>
Reviewed-by: Marvin Scholz <epirat07@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: softworkz . <softworkz-at-hotmail.com@ffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-30 17:26:05 +02:00
parent 830fab6891
commit 890b8da1ce
2 changed files with 0 additions and 8 deletions

5
configure vendored
View File

@@ -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

View File

@@ -70,9 +70,6 @@ variable-length arrays;
@item
complex numbers;
@item
mixed statements and declarations.
@end itemize
@subsection SIMD/DSP