| Allow warning 'unused-but-set-variable' when building IP Filter user-space |
| programs. |
| |
| diff -ru --exclude-from freebsd-src-diff-exclude-names /var/archive3/public/freebsd-releng-10.4-src/sbin/ipf/ippool/Makefile freebsd-10.4/sbin/ipf/ippool/Makefile |
| --- /var/archive3/public/freebsd-releng-10.4-src/sbin/ipf/ippool/Makefile 2017-09-29 08:21:18.000000000 +0800 |
| +++ freebsd-10.4/sbin/ipf/ippool/Makefile 2020-01-26 10:58:31.289309000 +0800 |
| @@ -3,7 +3,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 /var/archive3/public/freebsd-releng-10.4-src/sbin/ipf/libipf/Makefile freebsd-10.4/sbin/ipf/libipf/Makefile |
| --- /var/archive3/public/freebsd-releng-10.4-src/sbin/ipf/libipf/Makefile 2017-09-29 08:21:18.000000000 +0800 |
| +++ freebsd-10.4/sbin/ipf/libipf/Makefile 2020-01-26 10:35:16.438331000 +0800 |
| @@ -3,6 +3,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 \ |