git: 9b0ac181bedf - main - archivers/pecl-rar: fix build on 32-bits

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 11 Feb 2024 11:49:35 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9b0ac181bedf23fbff06c93b4f60398cbd476f02

commit 9b0ac181bedf23fbff06c93b4f60398cbd476f02
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-08 00:10:53 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-02-11 11:48:38 +0000

    archivers/pecl-rar: fix build on 32-bits
    
    /wrkdirs/usr/ports/archivers/pecl-rar/work-php82/rar-4.2.0/rararch.c:1237:42: error: incompatible function pointer types assigning to 'zend_object_count_elements_t' (aka 'ZEND_RESULT_CODE (*)(struct _zend_object *, int *)') from 'int (handler_this_t *, long *)' (aka 'int (struct _zend_object *, long *)') [-Wincompatible-function-pointer-types]
---
 archivers/pecl-rar/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/archivers/pecl-rar/Makefile b/archivers/pecl-rar/Makefile
index 62a81392abf3..728bb6003a4d 100644
--- a/archivers/pecl-rar/Makefile
+++ b/archivers/pecl-rar/Makefile
@@ -14,6 +14,8 @@ LICENSE=	PHP301
 
 USES=		compiler:c11 php:build,pecl
 
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+
 CONFIGURE_ARGS=	--enable-rar
 
 .include <bsd.port.mk>