build: add -Wextra warnings
authorRan Benita <ran234@gmail.com>
Fri, 7 Feb 2014 22:08:06 +0000 (00:08 +0200)
committerRan Benita <ran234@gmail.com>
Fri, 7 Feb 2014 23:51:38 +0000 (01:51 +0200)
If it gets annoying, we can disable it. But for now it's clean.

Signed-off-by: Ran Benita <ran234@gmail.com>
configure.ac

index e67cd4f..5f317ed 100644 (file)
@@ -86,6 +86,7 @@ AC_CHECK_HEADER([linux/input.h])
 AM_CONDITIONAL(BUILD_LINUX_TESTS, [test "x$ac_cv_header_linux_input_h" = xyes])
 
 XORG_TESTSET_CFLAG([BASE_CFLAGS], [-fvisibility=hidden])
+XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wextra -Wno-unused-parameter -Wno-missing-field-initializers])
 
 XORG_CHECK_LINKER_FLAGS([-Wl,--no-undefined], [have_no_undefined=yes])
 AM_CONDITIONAL([HAVE_NO_UNDEFINED], [test "x$have_no_undefined" = xyes])