From 7f5e857a11f932c247b5a96d0d86768226ba2e96 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 13 Jul 2009 09:12:33 -0400 Subject: Build all SSSD components with warnings enabled Previously, only the SSSD server components were being built with compile-time warnings enabled. This patch will ensure that all components in common and sss_client are also built the same way. --- common/collection/Makefile.am | 11 ++++++++++- common/collection/configure.ac | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'common/collection') diff --git a/common/collection/Makefile.am b/common/collection/Makefile.am index fe074904..a802cf01 100644 --- a/common/collection/Makefile.am +++ b/common/collection/Makefile.am @@ -2,7 +2,16 @@ TRACE_LEVEL=@TRACE_VAR@ topdir=$(srcdir)/.. -AM_CPPFLAGS = -Wall -I$(topdir) -I$(topdir)/trace $(TRACE_LEVEL) + +AM_CFLAGS = +if HAVE_GCC + AM_CFLAGS += \ + -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ + -Wcast-align -Wwrite-strings +endif + +AM_CPPFLAGS = -I$(topdir) -I$(topdir)/trace $(TRACE_LEVEL) + ACLOCAL_AMFLAGS = -I m4 # Set up the pkg-config file diff --git a/common/collection/configure.ac b/common/collection/configure.ac index 504cd4d5..290a3101 100644 --- a/common/collection/configure.ac +++ b/common/collection/configure.ac @@ -7,6 +7,8 @@ AC_PROG_LIBTOOL AC_CONFIG_MACRO_DIR([m4]) AC_PROG_INSTALL +AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes]) + m4_pattern_allow([AM_SILENT_RULES]) AM_SILENT_RULES -- cgit