git: c1bc8c8d0a01 - main - graphics/gdchart: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 12:04:06 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=c1bc8c8d0a01160b6013493eb80fb6172581b83d commit c1bc8c8d0a01160b6013493eb80fb6172581b83d Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-24 11:51:40 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-24 12:03:43 +0000 graphics/gdchart: Fix build with llvm16 Sponsored by: The FreeBSD Foundation --- graphics/gdchart/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graphics/gdchart/Makefile b/graphics/gdchart/Makefile index 840961217d2d..844cd6ae5305 100644 --- a/graphics/gdchart/Makefile +++ b/graphics/gdchart/Makefile @@ -32,6 +32,10 @@ PLIST_SUB+= PROFILE="@comment " PLIST_SUB+= PROFILE="" .endif +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-patch: @${REINPLACE_CMD} \ -e 's/^#ifdef HAVE_JPEG/#ifndef NO_JPEG/' \