summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-03-03 10:00:43 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2015-04-21 10:19:33 +0200
commitc0bedebfe9ca1a1ded02f1f481762dd41defa63e (patch)
tree9c040f71733fb7509c03457bc146373e65e95536 /bgpd
parent3a7e83c2387885075c9ecf1912dd6c9399c6947a (diff)
downloadquagga-c0bedebfe9ca1a1ded02f1f481762dd41defa63e.tar.bz2
quagga-c0bedebfe9ca1a1ded02f1f481762dd41defa63e.tar.xz
build: add --enable-werror
This allows enabling -Werror in a consistent way. Note that this is different from just specifiying it in CFLAGS, since that would either break configure tests (if done on ./configure), or would override configure's CFLAGS (if done on make). Using --enable-werror instead provides a new WERROR variable that is additionally used during make with a consistent set of warning flags. The tests/ directory is exempt. (Rationale being, better to have more tests than pedantically complain about them.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/Makefile.am b/bgpd/Makefile.am
index 42f1f488..92fa10cd 100644
--- a/bgpd/Makefile.am
+++ b/bgpd/Makefile.am
@@ -4,7 +4,7 @@ AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
INSTALL_SDATA=@INSTALL@ -m 600
-AM_CFLAGS = $(PICFLAGS)
+AM_CFLAGS = $(PICFLAGS) $(WERROR)
AM_LDFLAGS = $(PILDFLAGS)
noinst_LIBRARIES = libbgp.a