aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-24 11:51:40 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-24 12:03:43 +0000
commitc1bc8c8d0a01160b6013493eb80fb6172581b83d (patch)
tree1d2fe1aff84b30b6420ff1b5b6f8cfedc8c72dcb
parent64e9410f0700ec6c3ab487512ecc29b02c904e6e (diff)
downloadports-c1bc8c8d0a01160b6013493eb80fb6172581b83d.tar.gz
ports-c1bc8c8d0a01160b6013493eb80fb6172581b83d.zip
graphics/gdchart: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
-rw-r--r--graphics/gdchart/Makefile4
1 files changed, 4 insertions, 0 deletions
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/' \