FreeBSD Bugzilla – Attachment 238602 Details for
Bug 268223
java/openjdk8: fix build with clang 15
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
java/openjdk8: fix build with clang 15
java__openjdk8-fix-clang15-build-1.diff (text/plain), 3.15 KB, created by
Dimitry Andric
on 2022-12-07 14:57:54 UTC
(
hide
)
Description:
java/openjdk8: fix build with clang 15
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2022-12-07 14:57:54 UTC
Size:
3.15 KB
patch
obsolete
>commit 2d30cace64392a31e6d3be1d0654bfebcda6c9e1 >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Wed Dec 7 15:53:48 2022 +0100 > > java/openjdk8: fix build with clang 15 > > During an exp-run for llvm 15 (see bug 265425), it turned out that > java/openjdk8 failed to build with clang 15: > > /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:64:30: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion] > INVOKE(SplashLoadMemory, NULL)(pdata, size); > ^~~~ > /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL' > #define NULL ((void *)0) > ^~~~~~~~~~~ > /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:60:39: note: expanded from macro 'INVOKE' > #define INVOKE(name,def) _INVOKE(name,def,return) > ^~~ > /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:57:25: note: expanded from macro '_INVOKE' > if (!proc) { return def; } \ > ^~~ > /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:68:28: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion] > INVOKE(SplashLoadFile, NULL)(filename); > ^~~~ > /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL' > #define NULL ((void *)0) > ^~~~~~~~~~~ > /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:60:39: note: expanded from macro 'INVOKE' > #define INVOKE(name,def) _INVOKE(name,def,return) > ^~~ > /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:57:25: note: expanded from macro '_INVOKE' > if (!proc) { return def; } \ > ^~~ > 2 errors generated. > > Indeed, instead of the pointer value NULL, the integer value 0 should be > used. > >diff --git a/java/openjdk8/files/patch-jdk_src_share_bin_splashscreen__stubs.c b/java/openjdk8/files/patch-jdk_src_share_bin_splashscreen__stubs.c >new file mode 100644 >index 000000000000..80019e780130 >--- /dev/null >+++ b/java/openjdk8/files/patch-jdk_src_share_bin_splashscreen__stubs.c >@@ -0,0 +1,16 @@ >+--- jdk/src/share/bin/splashscreen_stubs.c.orig 2022-07-31 16:21:00 UTC >++++ jdk/src/share/bin/splashscreen_stubs.c >+@@ -61,11 +61,11 @@ int DoSplashLoadMemory(void* pdata, int size) { >+ #define INVOKEV(name) _INVOKE(name, ,;) >+ >+ int DoSplashLoadMemory(void* pdata, int size) { >+- INVOKE(SplashLoadMemory, NULL)(pdata, size); >++ INVOKE(SplashLoadMemory, 0)(pdata, size); >+ } >+ >+ int DoSplashLoadFile(const char* filename) { >+- INVOKE(SplashLoadFile, NULL)(filename); >++ INVOKE(SplashLoadFile, 0)(filename); >+ } >+ >+ void DoSplashInit(void) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268223
: 238602