git: 5b4d8f411674 - main - mail/qpopper: unbreak build for llvm16

From: Eugene Grosbein <eugen_at_FreeBSD.org>
Date: Mon, 26 Jun 2023 12:32:55 UTC
The branch main has been updated by eugen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b4d8f41167458ad70a9d798cefb4d5245abb8ed

commit 5b4d8f41167458ad70a9d798cefb4d5245abb8ed
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2023-06-26 12:31:17 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2023-06-26 12:32:48 +0000

    mail/qpopper: unbreak build for llvm16
    
    This unbreaks build, so PORTREVISION not changed.
---
 mail/qpopper/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/mail/qpopper/Makefile b/mail/qpopper/Makefile
index 9ec3fc3c128f..8e70fa98aae4 100644
--- a/mail/qpopper/Makefile
+++ b/mail/qpopper/Makefile
@@ -125,8 +125,12 @@ CONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
 # openssl-1.1.1 no longer has SSLv2 support
 .if ${OPSYS} == FreeBSD
 CFLAGS+=		-DOPENSSL_NO_SSL2
-CONFIGURE_ARGS+=	CFLAGS="${CFLAGS}"
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CFLAGS+=		-Wno-incompatible-function-pointer-types
 .endif
+.endif
+
+CONFIGURE_ENV+=		CFLAGS="${CFLAGS}"
 
 post-patch:
 .if ${COMPILER_TYPE} == clang