aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-06-25 22:50:27 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-06-25 23:21:37 +0000
commit85b9ede53bca1be06c48b601f7968054cdca0e5f (patch)
tree9ef6cbc60f771d90cf5fdefc62075ba4b0c6c844
parent68180db8a599c5918bc59df1270eb0fb1be6b64a (diff)
downloadports-85b9ede53bca1be06c48b601f7968054cdca0e5f.tar.gz
ports-85b9ede53bca1be06c48b601f7968054cdca0e5f.zip
multimedia/x264: fix build with llvm 16
common/ppc/pixel.c:1576:31: error: incompatible function pointer types assigning to 'x264_pixel_cmp_x3_t' (aka 'void (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, long, int *)') from 'int (uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t, int *)' (aka 'int (unsigned char *, unsigned char *, unsigned char *, unsigned char *, long, int *)') [-Wincompatible-function-pointer-types] pixf->sad_x3[PIXEL_8x16] = pixel_sad_x3_8x16_altivec; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ common/ppc/pixel.c:1578:31: error: incompatible function pointer types assigning to 'x264_pixel_cmp_x3_t' (aka 'void (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, long, int *)') from 'int (uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t, int *)' (aka 'int (unsigned char *, unsigned char *, unsigned char *, unsigned char *, long, int *)') [-Wincompatible-function-pointer-types] pixf->sad_x3[PIXEL_8x8] = pixel_sad_x3_8x8_altivec; ^ ~~~~~~~~~~~~~~~~~~~~~~~~ common/ppc/pixel.c:1581:31: error: incompatible function pointer types assigning to 'x264_pixel_cmp_x4_t' (aka 'void (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, long, int *)') from 'int (uint8_t *, uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t, int *)' (aka 'int (unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, long, int *)') [-Wincompatible-function-pointer-types] pixf->sad_x4[PIXEL_8x16] = pixel_sad_x4_8x16_altivec; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ common/ppc/pixel.c:1583:31: error: incompatible function pointer types assigning to 'x264_pixel_cmp_x4_t' (aka 'void (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, long, int *)') from 'int (uint8_t *, uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t, int *)' (aka 'int (unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, long, int *)') [-Wincompatible-function-pointer-types] pixf->sad_x4[PIXEL_8x8] = pixel_sad_x4_8x8_altivec; ^ ~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--multimedia/x264/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile
index c8465cd5dcd2..173ca9366c60 100644
--- a/multimedia/x264/Makefile
+++ b/multimedia/x264/Makefile
@@ -129,4 +129,10 @@ pre-build:
@(${RM} ${WRKSRC}/x264_config.h)
.endif
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
.include <bsd.port.mk>