Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2025 21:43:14 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f674d29b5336 - main - graphics/box: fix build on 32-bits
Message-ID:  <202501122143.50CLhExd097111@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

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

commit f674d29b533656c3c75abee40d0858666bfafe0a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-11 10:46:49 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-12 21:36:49 +0000

    graphics/box: fix build on 32-bits
    
    vmsym.c:567:28: error: incompatible function pointer types passing 'BoxTask (BoxVM *, BoxVMSymID, BoxUInt, int, void *, BoxUInt, void *, BoxUInt)' (aka 'BoxTask (struct BoxVM_struct *, unsigned long, unsigned long, int, void *, unsigned long, void *, unsigned long)') to parameter of type 'BoxVMSymResolver' (aka 'BoxTask (*)(struct BoxVM_struct *, unsigned long, unsigned long, int, void *, unsigned int, void *, unsigned int)') [-Wincompatible-function-pointer-types]
      567 |   BoxVMSym_Ref(vm, sym_id, My_Code_Generator, ref_all, ref_all_size, -1);
          |                            ^~~~~~~~~~~~~~~~~
---
 graphics/box/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/graphics/box/Makefile b/graphics/box/Makefile
index 9d8c5ce8d318..fc77b3f31a8d 100644
--- a/graphics/box/Makefile
+++ b/graphics/box/Makefile
@@ -31,6 +31,8 @@ PLIST_SUB=	PLIST_VER=${PORTVERSION:R}
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+
 post-patch:
 	${TOUCH} ${WRKSRC}/man/${PORTNAME}.sgml
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501122143.50CLhExd097111>