git: 44de32f51fdf - main - textproc/rman: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 23 Jul 2023 18:45:32 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=44de32f51fdf90aabdfe2374b20e05965fd85714

commit 44de32f51fdf90aabdfe2374b20e05965fd85714
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 18:32:40 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 18:45:16 +0000

    textproc/rman: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 textproc/rman/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/textproc/rman/Makefile b/textproc/rman/Makefile
index 559ad3cb4c9f..e39d7c96a0f2 100644
--- a/textproc/rman/Makefile
+++ b/textproc/rman/Makefile
@@ -11,6 +11,12 @@ MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" \
 
 PLIST_FILES=	bin/rman man/man1/rman.1.gz
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rman