History

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.

Andreas Rheinhardt committed 1 year ago

Commit 890b8da1 parent 830fab62 files · +0 −8Browse files

Unified · Split

2 files
  1. configure +0 −5
  2. doc/developer.texi +0 −3
configure+0−5
@@ -7467,7 +7467,6 @@ fi · 7466 unmodified lines
74677467 enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
74687468
74697469 # add some useful compiler flags if supported
7470−check_cflags -Wdeclaration-after-statement
74717470 check_cflags -Wall
74727471 check_cflags -Wdisabled-optimization
74737472 check_cflags -Wpointer-arith
@@ -7504,10 +7503,6 @@ check_disable_warning -Wno-bool-operation · 30 unmodified lines
75047503 check_disable_warning -Wno-char-subscripts
75057504 check_disable_warning -Wno-implicit-const-int-float-conversion
75067505
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−
75117506 check_disable_warning_headers(){
75127507 warning_flag=-W${1#-Wno-}
75137508 test_cflags $warning_flag && add_cflags_headers $1
doc/developer.texi+0−3
@@ -70,9 +70,6 @@ variable-length arrays; · 69 unmodified lines
7070
7171 @item
7272 complex numbers;
73−
74−@item
75−mixed statements and declarations.
7673 @end itemize
7774
7875 @subsection SIMD/DSP

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t