configure: add -Wextra -Wno-unused-parameter
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 22 Mar 2012 09:30:35 +0000 (11:30 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Mar 2012 13:32:24 +0000 (09:32 -0400)
This adds more gcc warnings that should be useful, and suppresses the
unused parameter warnings that are not wanted.

Most importantly, this change enables warnings about comparison between
signed and unsigned.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
configure.ac

index 094da67..194850c 100644 (file)
@@ -23,7 +23,7 @@ PKG_PROG_PKG_CONFIG()
 PKG_CHECK_MODULES(FFI, [libffi])
 
 if test "x$GCC" = "xyes"; then
-       GCC_CFLAGS="-Wall -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
+       GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
 fi
 AC_SUBST(GCC_CFLAGS)