blob: 9bfac87c31ae97add7ee68602abbd97578ed986a [file] [log] [blame] [raw]
Allow warning 'unused-but-set-variable' when building libipf.
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sbin/ipf/ippool/Makefile freebsd-11.1/sbin/ipf/ippool/Makefile
--- /usr/src/sbin/ipf/ippool/Makefile 2017-07-21 07:43:25.000000000 +0800
+++ freebsd-11.1/sbin/ipf/ippool/Makefile 2020-01-26 11:02:28.486173000 +0800
@@ -4,7 +4,7 @@
PROG= ippool
SRCS= ${GENHDRS} ippool_y.c ippool_l.c kmem.c ippool.c
MAN= ippool.5 ippool.8
-CFLAGS+= -I.
+CFLAGS+= -I. -Wno-error=unused-but-set-variable
GENHDRS= ippool_l.h ippool_y.h
CLEANFILES+= ${GENHDRS} ippool_y.c ippool_l.c
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sbin/ipf/libipf/Makefile freebsd-11.1/sbin/ipf/libipf/Makefile
--- /usr/src/sbin/ipf/libipf/Makefile 2017-07-21 07:43:25.000000000 +0800
+++ freebsd-11.1/sbin/ipf/libipf/Makefile 2020-01-26 10:53:58.740301000 +0800
@@ -4,6 +4,8 @@
LIB= ipf
INTERNALLIB=
+CFLAGS+= -Wno-error=unused-but-set-variable
+
SRCS= addicmp.c addipopt.c alist_free.c alist_new.c allocmbt.c \
assigndefined.c bcopywrap.c \
binprint.c buildopts.c checkrev.c connecttcp.c \