History

warn about declarations after statements when compiling with gcc.

Philip committed 11 years ago

Commit 2e51f0e1 parent 1351de61 file · +5 −0Browse files

Unified · Split

configure+5−0
@@ -387,6 +387,11 @@ else · 386 unmodified lines
387387 fi
388388
389389 # a final configuration tuning
390+W_OPTIONS="declaration-after-statement"
391+for i in $W_OPTIONS; do
392+ O_PRESENT="$($cc -v --help 2>&1 | grep -- -W$i)"
393+ if test -n "$O_PRESENT"; then CFLAGS="$CFLAGS -W$i"; fi
394+done
390395 W_OPTIONS="deprecated-declarations strict-aliasing pointer-sign sign-compare unused-result uninitialized"
391396 for i in $W_OPTIONS; do
392397 O_PRESENT="$($cc -v --help 2>&1 | grep -- -W$i)"

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