From: Vincent Bernat Date: Mon, 17 Aug 2015 11:43:44 +0000 (+0200) Subject: build: ensure we can build libnl with -Wall -Werror X-Git-Tag: 0.8.0~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=674403b4b8bca29417393612569bcaf8d7306bf0;p=thirdparty%2Flldpd.git build: ensure we can build libnl with -Wall -Werror We need to silence out unused variables, in this case. --- diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 4fb515f5..7cb2e925 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -156,7 +156,7 @@ if HOST_OS_LINUX if LIBNL_EMBEDDED netlink.c: $(top_builddir)/libnl/lib/libnl-3.la $(top_builddir)/libnl/lib/libnl-route-3.la $(top_builddir)/libnl/lib/libnl-3.la $(top_builddir)/libnl/lib/libnl-route-3.la: $(top_srcdir)/libnl/lib/*.c $(top_srcdir)/libnl/lib/route/*.c - (cd $(top_builddir)/libnl && $(MAKE)) + (cd $(top_builddir)/libnl && $(MAKE) CFLAGS="$(CFLAGS) -Wno-error=unused-variable") endif endif