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