Unified · Split
| @@ -387,6 +387,11 @@ else · 386 unmodified lines | ||
| 387 | 387 | fi |
| 388 | 388 | |
| 389 | 389 | # 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 | |
| 390 | 395 | W_OPTIONS="deprecated-declarations strict-aliasing pointer-sign sign-compare unused-result uninitialized" |
| 391 | 396 | for i in $W_OPTIONS; do |
| 392 | 397 | O_PRESENT="$($cc -v --help 2>&1 | grep -- -W$i)" |