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.
Unified · Split
| @@ -7467,7 +7467,6 @@ fi · 7466 unmodified lines | |||
| 7467 | enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel" | 7467 | enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel" |
| 7468 | 7468 | ||
| 7469 | # add some useful compiler flags if supported | 7469 | # add some useful compiler flags if supported |
| 7470 | check_cflags -Wdeclaration-after-statement | ||
| 7471 | check_cflags -Wall | 7470 | check_cflags -Wall |
| 7472 | check_cflags -Wdisabled-optimization | 7471 | check_cflags -Wdisabled-optimization |
| 7473 | check_cflags -Wpointer-arith | 7472 | check_cflags -Wpointer-arith |
| @@ -7504,10 +7503,6 @@ check_disable_warning -Wno-bool-operation · 30 unmodified lines | |||
| 7504 | check_disable_warning -Wno-char-subscripts | 7503 | check_disable_warning -Wno-char-subscripts |
| 7505 | check_disable_warning -Wno-implicit-const-int-float-conversion | 7504 | check_disable_warning -Wno-implicit-const-int-float-conversion |
| 7506 | 7505 | ||
| 7507 | # Disable mixed decl and code warning for Objective-C | ||
| 7508 | test_objcflags $unknown_warning_flags '-Wdeclaration-after-statement' && | ||
| 7509 | add_objcflags '-Wno-declaration-after-statement' | ||
| 7510 | |||
| 7511 | check_disable_warning_headers(){ | 7506 | check_disable_warning_headers(){ |
| 7512 | warning_flag=-W${1#-Wno-} | 7507 | warning_flag=-W${1#-Wno-} |
| 7513 | test_cflags $warning_flag && add_cflags_headers $1 | 7508 | test_cflags $warning_flag && add_cflags_headers $1 |
| @@ -70,9 +70,6 @@ variable-length arrays; · 69 unmodified lines | |||
| 70 | 70 | ||
| 71 | @item | 71 | @item |
| 72 | complex numbers; | 72 | complex numbers; |
| 73 | |||
| 74 | @item | ||
| 75 | mixed statements and declarations. | ||
| 76 | @end itemize | 73 | @end itemize |
| 77 | 74 | ||
| 78 | @subsection SIMD/DSP | 75 | @subsection SIMD/DSP |