mirror of
https://github.com/mirror/wget.git
synced 2026-08-22 19:03:27 +08:00
Add the -Wextra flag by default
After the Spring Cleaning on warnings in early 2014, GCC and Clang emit only about two warnings when compiling Wget with -Wall -Wextra. Enable both these flags by default so that new warnings in these areas are more prominent.
This commit is contained in:
@@ -165,9 +165,11 @@ dnl if compiler is gcc, then
|
||||
dnl use -O2 and some warning flags
|
||||
dnl else
|
||||
dnl use os-specific flags or -O
|
||||
dnl
|
||||
dnl For these tests, the system considers clang to be gcc
|
||||
if test -n "$auto_cflags"; then
|
||||
if test -n "$GCC"; then
|
||||
CFLAGS="$CFLAGS -O2 -Wall"
|
||||
CFLAGS="$CFLAGS -O2 -Wall -Wextra"
|
||||
else
|
||||
case "$host_os" in
|
||||
*hpux*) CFLAGS="$CFLAGS +O3" ;;
|
||||
|
||||
Reference in New Issue
Block a user