git: 8ae19b07fdb5 - main - sysutils/gstopd: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Jul 2023 14:46:11 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=8ae19b07fdb52d941ab7b00e14a49a3718e5b0d1 commit 8ae19b07fdb52d941ab7b00e14a49a3718e5b0d1 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-24 13:58:48 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-24 14:46:02 +0000 sysutils/gstopd: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- sysutils/gstopd/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sysutils/gstopd/Makefile b/sysutils/gstopd/Makefile index 56de024263d3..607c8488975f 100644 --- a/sysutils/gstopd/Makefile +++ b/sysutils/gstopd/Makefile @@ -8,6 +8,12 @@ COMMENT= GEOM stop daemon PLIST_FILES= sbin/gstopd man/man8/gstopd.8.gz +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=unused-but-set-variable +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gstopd ${STAGEDIR}${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/gstopd.8 ${STAGEDIR}${PREFIX}/man/man8