From: Alan Coopersmith Date: Sun, 4 Aug 2013 03:22:25 +0000 (-0700) Subject: Enable warnings for pre-C89 style definitions for gcc & Solaris Studio X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb51f271b26c6abc76d415553f202bc5139273ca;p=free-sw%2Fxcb%2Flibxcb Enable warnings for pre-C89 style definitions for gcc & Solaris Studio Signed-off-by: Alan Coopersmith Reviewed-by: Josh Triplett --- diff --git a/configure.ac b/configure.ac index 8cc5775..482f85b 100644 --- a/configure.ac +++ b/configure.ac @@ -128,12 +128,12 @@ xcbincludedir='${includedir}/xcb' AC_SUBST(xcbincludedir) if test "x$GCC" = xyes ; then - CWARNFLAGS="-Wall -pedantic -Wpointer-arith \ + CWARNFLAGS="-Wall -pedantic -Wpointer-arith -Wold-style-definition \ -Wstrict-prototypes -Wmissing-declarations -Wnested-externs" else AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) if test "x$SUNCC" = "xyes"; then - CWARNFLAGS="-v" + CWARNFLAGS="-v -fd" fi fi AC_SUBST(CWARNFLAGS)