From: Kay Sievers Date: Tue, 12 Aug 2008 09:19:32 +0000 (+0200) Subject: add some warnings X-Git-Tag: 174~1632 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e231a5db51f1b21252b2404d0aa2f243baa87a1a;p=systemd add some warnings --- diff --git a/autogen.sh b/autogen.sh index 43c763bf..4ec4e055 100755 --- a/autogen.sh +++ b/autogen.sh @@ -43,6 +43,11 @@ automake --add-missing if test -z "$@"; then args="--prefix=/usr --exec-prefix= --sysconfdir=/etc" + export CFLAGS="-g -Wall \ +-Wmissing-declarations -Wmissing-prototypes \ +-Wnested-externs -Wpointer-arith \ +-Wpointer-arith -Wsign-compare -Wchar-subscripts \ +-Wstrict-prototypes -Wshadow" else args=$@ fi diff --git a/configure.ac b/configure.ac index 8d5228ff..eb22a5cb 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_INIT([udev], [kay.sievers@vrfy.org]) AC_PREREQ(2.60) AC_CONFIG_SRCDIR([udev/udevd.c]) -AM_INIT_AUTOMAKE([check-news foreign -Wall 1.9 dist-bzip2]) +AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2]) AC_GNU_SOURCE AC_DISABLE_STATIC AC_SYS_LARGEFILE