From 292a9eab92e908b6dc0e97b5ea07c432f41b8bae Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 23 Nov 2010 19:06:17 +0000 Subject: Move CFLAGS_WARNINGS setup after uses of JH_ADD_CFLAG We don't want to enable potentially-fatal errors when checking for things like -fno-strict-aliasing, because autoconf's test programs provoke warnings. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index eb71a55..10e5ffa 100644 --- a/configure.ac +++ b/configure.ac @@ -160,8 +160,6 @@ TP_COMPILER_WARNINGS([CFLAGS_WARNINGS], [test] dbus_python_released [= 0], init-self], [missing-field-initializers]) -CFLAGS="$CFLAGS $CFLAGS_WARNINGS" - JH_ADD_CFLAG([-std=c9x]) JH_ADD_CFLAG([-fno-strict-aliasing]) @@ -173,6 +171,8 @@ if test "x$enable_Werror" = xyes; then JH_ADD_CFLAG([-Werror]) fi +CFLAGS="$CFLAGS $CFLAGS_WARNINGS" + ifelse(dbus_python_released, 1, [ # version x.y.z - disable coding style checks by default AC_ARG_ENABLE(coding-style-checks, -- cgit v1.2.1