diff options
author | Simon McVittie <smcv@debian.org> | 2010-11-23 19:06:17 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-11-23 19:06:17 +0000 |
commit | 292a9eab92e908b6dc0e97b5ea07c432f41b8bae (patch) | |
tree | 46936bdb28b3a2729e9ebfc9aa7c7e692cdbd646 | |
parent | 83b51706c422662dd0a7d55a40030a1d75c38f88 (diff) | |
download | dbus-python-292a9eab92e908b6dc0e97b5ea07c432f41b8bae.tar.gz |
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.
-rw-r--r-- | configure.ac | 4 |
1 files 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, |