From 85c19fc0bac344a477066c8239c3a8f935abd75c Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 3 Jan 2001 20:30:43 -0500 Subject: [svn-r3235] Purpose: Improve compiler warnings Description: Added several more warning flags to the gcc compiler flags.. Platforms tested: FreeBSD 4.2 (hawkwind) --- configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a537ae9..32aa2f2 100755 --- a/configure +++ b/configure @@ -1773,7 +1773,7 @@ done rm maketest if test "X$GCC" = "Xyes"; then - CFLAGS="$CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline" + CFLAGS="$CFLAGS -ansi -pedantic -Wchar-subscripts -Wconversion -Wredundant-decls -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline" fi echo $ac_n "checking for production mode""... $ac_c" 1>&6 diff --git a/configure.in b/configure.in index f3f3f15..cc85103 100644 --- a/configure.in +++ b/configure.in @@ -336,7 +336,7 @@ dnl ---------------------------------------------------------------------- dnl Turn on warning flags for gcc. dnl if test "X$GCC" = "Xyes"; then - CFLAGS="$CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline" + CFLAGS="$CFLAGS -ansi -pedantic -Wchar-subscripts -Wconversion -Wredundant-decls -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline" fi dnl ---------------------------------------------------------------------- -- cgit v0.12