Stricter compilation flags

Use a little stricter compilation flags, in particular -Wall and treat
implicit function declarations as errors.

Signed-off-by: Simo Sorce <ssorce@redhat.com>
This commit is contained in:
Jakub Hrozek
2010-11-04 17:08:26 +01:00
committed by Simo Sorce
parent 5da451876e
commit ce75d1c6d6
11 changed files with 28 additions and 0 deletions

View File

@@ -4,6 +4,14 @@ AUTOMAKE_OPTIONS = 1.7
NULL =
AM_CFLAGS = $(NULL)
if HAVE_GCC
AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
-Wcast-align -Werror-implicit-function-declaration \
$(NULL)
endif
export AM_CFLAGS
SUBDIRS = \
ipa-kpasswd \
ipa-slapi-plugins \