git: 5c4db1815ffa - main - x11-toolkits/p5-Prima: fix build on 32-bits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Feb 2024 11:49:43 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5c4db1815ffa90d991a659bd469f6e4cf46a47a2
commit 5c4db1815ffa90d991a659bd469f6e4cf46a47a2
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-08 23:13:45 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-02-11 11:48:45 +0000
x11-toolkits/p5-Prima: fix build on 32-bits
img/codec_Xpm.c:635:21: error: incompatible function pointer types assigning to 'Bool (*)(PImgCodec, PImgLoadFileInstance)' (aka 'long (*)(struct ImgCodec *, struct _ImgLoadFileInstance *)') from 'int (PImgCodec, PImgLoadFileInstance)' (aka 'int (struct ImgCodec *, struct _ImgLoadFileInstance *)') [-Wincompatible-function-pointer-types]
vmt. load = load;
^ ~~~~
img/codec_Xpm.c:639:21: error: incompatible function pointer types assigning to 'Bool (*)(PImgCodec, PImgSaveFileInstance)' (aka 'long (*)(struct ImgCodec *, struct _ImgSaveFileInstance *)') from 'int (PImgCodec, PImgSaveFileInstance)' (aka 'int (struct ImgCodec *, struct _ImgSaveFileInstance *)') [-Wincompatible-function-pointer-types]
vmt. save = save;
^ ~~~~
---
x11-toolkits/p5-Prima/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/x11-toolkits/p5-Prima/Makefile b/x11-toolkits/p5-Prima/Makefile
index 112b8ce312dc..07e20f93e9b4 100644
--- a/x11-toolkits/p5-Prima/Makefile
+++ b/x11-toolkits/p5-Prima/Makefile
@@ -58,6 +58,8 @@ XFT_CONFIGURE_OFF= WITH_XFT=0
XFT_CONFIGURE_ON= WITH_XFT=1
XFT_USE= XORG=xft
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Prima/Prima.so
@${REINPLACE_CMD} -e 's|${STAGEDIR}||' ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/Prima/Config.pm