summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-06-30 17:05:36 -0700
committerBrian Behlendorf <[email protected]>2010-06-30 17:05:36 -0700
commitc950d1480dc2bf72b4ea69f32976be016c66135f (patch)
tree6e07bc31dca7d3b449c101178d55b97d9e1ff2de /lib
parent6801b7154ccd8df47564d0f888166f3da931f3ff (diff)
Only make compiler warnings fatal with --enable-debug
While in theory I like the idea of compiler warnings always being fatal. In practice this causes problems when small harmless errors cause build failures for end users. To handle this I've updated the build system such that -Werror is only used when --enable-debug is passed to configure. This is how I always build when developing so I'll catch all build warnings and end users will not get stuck by minor issues.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in
index 3ba39fff7..eb2e83134 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -106,6 +106,7 @@ CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
+DEBUG_CFLAGS = @DEBUG_CFLAGS@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DSYMUTIL = @DSYMUTIL@
@@ -227,8 +228,8 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
DEFAULT_INCLUDES = -include ${top_srcdir}/spl_config.h
AM_LIBTOOLFLAGS = --silent
-AM_CFLAGS = -Wall -Wstrict-prototypes -Werror -Wshadow \
- -D__USE_LARGEFILE64
+AM_CFLAGS = -Wall -Wshadow -Wstrict-prototypes -fno-strict-aliasing \
+ -D__USE_LARGEFILE64 ${DEBUG_CFLAGS}
noinst_LTLIBRARIES = libcommon.la
libcommon_la_SOURCES = list.c
EXTRA_DIST = list.h