From ce75d1c6d6595bcb26dbacf7393098a8f9accb3f Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 4 Nov 2010 17:08:26 +0100 Subject: Stricter compilation flags Use a little stricter compilation flags, in particular -Wall and treat implicit function declarations as errors. Signed-off-by: Simo Sorce --- ipa-client/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ipa-client/Makefile.am') diff --git a/ipa-client/Makefile.am b/ipa-client/Makefile.am index 2fc45be25..655a68664 100644 --- a/ipa-client/Makefile.am +++ b/ipa-client/Makefile.am @@ -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 + INCLUDES = \ -I. \ -I$(srcdir) \ @@ -13,6 +21,7 @@ INCLUDES = \ -DLIBEXECDIR=\""$(libexecdir)"\" \ -DDATADIR=\""$(datadir)"\" \ -DLOCALEDIR=\""$(localedir)"\" \ + $(AM_CFLAGS) \ $(KRB5_CFLAGS) \ $(OPENLDAP_CFLAGS) \ $(MOZLDAP_CFLAGS) \ -- cgit