]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: ensure we can build libnl with -Wall -Werror
authorVincent Bernat <vincent@bernat.im>
Mon, 17 Aug 2015 11:43:44 +0000 (13:43 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 17 Aug 2015 11:43:44 +0000 (13:43 +0200)
We need to silence out unused variables, in this case.

src/daemon/Makefile.am

index 4fb515f531e3a0eb58e38218a9b9cde70e0631ba..7cb2e925739353cf17fd622d1bf886c651037ca3 100644 (file)
@@ -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