From e02d262cd539c3520222ad4e276daacaa7be6d46 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. --- dhash/Makefile.am | 8 +++++++- dhash/configure.ac | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'dhash') diff --git a/dhash/Makefile.am b/dhash/Makefile.am index 9037bf9..b8d5ce6 100644 --- a/dhash/Makefile.am +++ b/dhash/Makefile.am @@ -1,4 +1,10 @@ -AM_CPPFLAGS = -Wall +AM_CFLAGS = +if HAVE_GCC + AM_CFLAGS += \ + -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ + -Wcast-align -Wwrite-strings +endif + ACLOCAL_AMFLAGS = -I m4 pkgconfigdir = $(libdir)/pkgconfig diff --git a/dhash/configure.ac b/dhash/configure.ac index feabc48..bd21028 100644 --- a/dhash/configure.ac +++ b/dhash/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