Skip to content

Commit

Permalink
x11-toolkits/p5-Prima: fix build on 32-bits
Browse files Browse the repository at this point in the history
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;
                           ^ ~~~~
  • Loading branch information
pkubaj committed Feb 11, 2024
1 parent 752cebc commit 5c4db18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x11-toolkits/p5-Prima/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 5c4db18

Please sign in to comment.