changeset 850:a6f53dbe803f HEAD

Enable more warnings with gcc
author Timo Sirainen <tss@iki.fi>
date Sun, 22 Dec 2002 10:49:26 +0200
parents 55a2bac7b74a
children e73389a2324a
files configure.in
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sun Dec 22 10:48:49 2002 +0200
+++ b/configure.in	Sun Dec 22 10:49:26 2002 +0200
@@ -131,8 +131,10 @@
 
 dnl * gcc specific options
 if test "x$ac_cv_prog_gcc" = "xyes"; then
-	# -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes
-	CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat-nonliteral"
+	# -Wcast-qual -Wcast-align -Wconversion # too many warnings
+	# -Wstrict-prototypes -Wredundant-decls # may give warnings in some systems
+	# -Wmissing-format-attribute -Wmissing-noreturn # a couple of warnings
+	CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast"
 fi
 
 dnl **