git: 3372e98c040e - main - games/nethack33: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jul 2023 09:40:24 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=3372e98c040e09e375e86aea2e31ef885499b602 commit 3372e98c040e09e375e86aea2e31ef885499b602 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-26 09:03:32 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-26 09:40:12 +0000 games/nethack33: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/nethack33/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/games/nethack33/Makefile b/games/nethack33/Makefile index 6652d46e802b..e84dac0d776d 100644 --- a/games/nethack33/Makefile +++ b/games/nethack33/Makefile @@ -47,6 +47,10 @@ PLIST_SUB+= HACKLINK="" PLIST_SUB+= HACKLINK="@comment " .endif +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + pre-everything:: .if defined(WITH_TTY_GRAPHICS) || defined(WITHOUT_X11) @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"