From: Lennart Poettering Date: Wed, 25 Dec 2013 17:34:44 +0000 (+0100) Subject: build-sys: the pure/const warning options are probably too much as default, but let... X-Git-Tag: v209~646 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=25ad8664604507aacab593327b8d9d7454f0634d build-sys: the pure/const warning options are probably too much as default, but let's make it available via "autogen.sh a" --- diff --git a/autogen.sh b/autogen.sh index 9ffd7240a..e6289b3bc 100755 --- a/autogen.sh +++ b/autogen.sh @@ -59,6 +59,9 @@ if [ "x$1" = "xc" ]; then elif [ "x$1" = "xg" ]; then ./configure CFLAGS='-g -Og -ftrapv' --enable-kdbus $args make clean +elif [ "x$1" = "xa" ]; then + ./configure CFLAGS='-g -O0 -Wsuggest-attribute=pure -Wsuggest-attribute=const -ftrapv' --enable-kdbus $args + make clean else echo echo "----------------------------------------------------------------" diff --git a/configure.ac b/configure.ac index 86eebce68..efca1a7d3 100644 --- a/configure.ac +++ b/configure.ac @@ -127,8 +127,6 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\ -Winit-self \ -Wdeclaration-after-statement \ -Wfloat-equal \ - -Wsuggest-attribute=pure \ - -Wsuggest-attribute=const \ -Wsuggest-attribute=noreturn \ -Wmissing-prototypes \ -Wstrict-prototypes \