git: 82403f12dfb6 - main - irc/scrollz: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 21 Jul 2023 15:42:03 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=82403f12dfb62e98c15484a884890ff14017af1a

commit 82403f12dfb62e98c15484a884890ff14017af1a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-21 15:41:29 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-21 15:41:48 +0000

    irc/scrollz: Fix build with llvm16
    
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 irc/scrollz/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/irc/scrollz/Makefile b/irc/scrollz/Makefile
index 57d7257c0710..ff31780f816d 100644
--- a/irc/scrollz/Makefile
+++ b/irc/scrollz/Makefile
@@ -16,9 +16,11 @@ LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
 USES=		gmake iconv ncurses
 USE_GITHUB=	yes
+
 GNU_CONFIGURE=	yes
 
 DATADIR=	${PREFIX}/share/${PORTNAME:tl}
+
 PLIST_SUB=	SCROLLZ_VER="${PORTVERSION}"
 
 OPTIONS_DEFINE=		IPV6 REGEX UTF8
@@ -26,13 +28,13 @@ OPTIONS_DEFAULT=	OPENSSL REGEX UTF8
 OPTIONS_RADIO=		SSL
 OPTIONS_RADIO_SSL=	GNUTLS OPENSSL
 
-IPV6_CONFIGURE_ENABLE=	ipv6
 GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
 GNUTLS_USES=		pkgconfig
 GNUTLS_CONFIGURE_ON=	--with-ssl
-REGEX_CONFIGURE_ENABLE=	regexp
+IPV6_CONFIGURE_ENABLE=	ipv6
 OPENSSL_USES=		ssl
 OPENSSL_CONFIGURE_ON=	--with-openssl=${OPENSSLBASE}
+REGEX_CONFIGURE_ENABLE=	regexp
 UTF8_CONFIGURE_ENABLE=	utf8
 
 .include <bsd.port.pre.mk>
@@ -41,6 +43,10 @@ UTF8_CONFIGURE_ENABLE=	utf8
 CFLAGS+=       -Wno-error=int-conversion
 .endif
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .if !empty(ICONV_LIB)
 CONFIGURE_ENV+=ac_cv_func_iconv_open=yes
 .endif