1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04: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:
Darshit Shah 2014-11-01 15:25:01 +05:30
parent d9f21b4b95
commit bfbc2866c5
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-11-20 Darshit Shah <darnir@gmail.com>
* configure.ac: Add the -Wextra flag when no CFLAGS are set
2014-11-19 Tim Ruehsen <tim.ruehsen@gmx.de>
* configure.ac: Check for random()

View File

@ -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" ;;