The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3456659866b6fffddbb43e0b7fd1e0bf67761d73
commit 3456659866b6fffddbb43e0b7fd1e0bf67761d73 Author: John Baldwin <[email protected]> AuthorDate: 2023-06-20 19:38:20 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2023-06-20 19:38:20 +0000 jail: Mute -Wunused-but-set-variable for yynerrs. This is in the generated parser when using %pure-parser. y.tab.c:382:14: error: variable 'yynerrs' set but not used [-Werror,-Wunused-but-set-variable] int yynerrs; ^ Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40671 --- usr.sbin/jail/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile index de1e89e708f0..d5ec068ca48b 100644 --- a/usr.sbin/jail/Makefile +++ b/usr.sbin/jail/Makefile @@ -11,6 +11,7 @@ LIBADD= jail kvm util PACKAGE=jail NO_WMISSING_VARIABLE_DECLARATIONS= +CWARNFLAGS.jailparse.c= ${NO_WUNUSED_BUT_SET_VARIABLE} YFLAGS+=-v CFLAGS+=-I. -I${.CURDIR}
