enable warnings

This commit is contained in:
albert 2002-05-29 04:54:06 +00:00
parent 20247b3594
commit 33460c2b3c

16
configure vendored
View File

@ -990,21 +990,15 @@ rm -f conftest*
fi
#
# Unfortunately not every gcc supports these:
# -Wpadded -Wunreachable-code -Wdisabled-optimization
#
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
CFLAGS="-O2 -fno-common -Wcast-align -Wconversion -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -W -Wall -Wstrict-prototypes -Wshadow -Wmissing-prototypes"
fi
# Find a good install program. We prefer a C program (faster),