summaryrefslogtreecommitdiffstats
path: root/collection
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-07-13 09:12:33 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-07-13 12:13:55 -0400
commite02d262cd539c3520222ad4e276daacaa7be6d46 (patch)
treeaf3d991f125ad024598c8bef4f78b1ae9f1a458d /collection
parentac4a39e731c8fab365a9030aa5244b6875b38ad3 (diff)
downloadding-libs-e02d262cd539c3520222ad4e276daacaa7be6d46.tar.gz
ding-libs-e02d262cd539c3520222ad4e276daacaa7be6d46.tar.xz
ding-libs-e02d262cd539c3520222ad4e276daacaa7be6d46.zip
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.
Diffstat (limited to 'collection')
-rw-r--r--collection/Makefile.am11
-rw-r--r--collection/configure.ac2
2 files changed, 12 insertions, 1 deletions
diff --git a/collection/Makefile.am b/collection/Makefile.am
index fe07490..a802cf0 100644
--- a/collection/Makefile.am
+++ b/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/collection/configure.ac b/collection/configure.ac
index 504cd4d..290a310 100644
--- a/collection/configure.ac
+++ b/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