git: 17ec21b2abb2 - main - java/openjfx14: unbreak build with LLVM15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Feb 2023 16:17:27 UTC
The branch main has been updated by mikael:
URL: https://cgit.FreeBSD.org/ports/commit/?id=17ec21b2abb2b382b1d745db2ec74284e5566bc9
commit 17ec21b2abb2b382b1d745db2ec74284e5566bc9
Author: Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2023-02-14 16:15:42 +0000
Commit: Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2023-02-14 16:17:18 +0000
java/openjfx14: unbreak build with LLVM15
Pass -Wno-int-conversion to CFLAGS fixes error with strict conversion rules introduced in LLVM15
/wrkdirs/usr/ports/java/openjfx14/work/jfx-14.0.2.1-1/modules/javafx.graphics/src/main/native-font/pango.c:245:73: error: incompatible integer to pointer conversion passing 'jlong' (aka 'long long') to parameter of type 'void *' [-Wint-conversion]
rc = (jboolean)((jboolean (*)(void *, const char *))fp)(arg0, text);
^~~~
---
java/openjfx14/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/openjfx14/Makefile b/java/openjfx14/Makefile
index b5a9ff49a289..bc9d5725c558 100644
--- a/java/openjfx14/Makefile
+++ b/java/openjfx14/Makefile
@@ -46,7 +46,8 @@ JAVA_VERSION= 11
USE_LDCONFIG= yes
USE_XORG= x11 xtst xxf86vm
-CFLAGS+= -Wno-unused-command-line-argument
+CFLAGS+= -Wno-unused-command-line-argument \
+ -Wno-int-conversion
PLIST_SUB= INSTALLDIR=${_INSTALLDIR}