gentoo-ebuilds/dev-java/openjdk/files/openjdk-8.402_p06-0001-Fix-Wint-conversion.patch
Sam James 250d2f45f9
dev-java/openjdk: add 8.402_p06
* Fix various modern C issues - all by backporting parts of later JDK 11/17/21 patches.
* cgroup2 issues: Assuming bug #926247 affects the source build too, but not
  verified, so tagging that.
* Drop stale -fcommon workaround (bug #850505).
* Build with -std=gnu++14 because of -Wregister for Clang 17+ compat (bug #918655).
  (Part of the build uses -std=gnu++98 but not all of it.)

Bug: https://bugs.gentoo.org/926247
Closes: https://bugs.gentoo.org/850505
Closes: https://bugs.gentoo.org/874621
Closes: https://bugs.gentoo.org/918655
Signed-off-by: Sam James <sam@gentoo.org>
2024-03-06 12:42:18 +00:00

41 lines
1.4 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From cc568d4d246ffc9bf08a96db0889d3b89c852718 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Wed, 6 Mar 2024 11:22:11 +0000
Subject: [PATCH 1/4] Fix -Wint-conversion
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Backport of upstream commit https://github.com/openjdk/jdk21u-dev/commit/7b1455163ed893639059b3d62b71b2ff347c2e3f.
Fixes the following warning/error:
```
jdk8u-jdk8u402-ga/jdk/src/share/bin/splashscreen_stubs.c:64:5: error: returning void * from a function with return type int makes integer from pointer without a cast [-Wint-conversion]
```
Signed-off-by: Sam James <sam@gentoo.org>
---
jdk/src/share/bin/splashscreen_stubs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jdk/src/share/bin/splashscreen_stubs.c b/jdk/src/share/bin/splashscreen_stubs.c
index 9c1f514..666634f 100644
--- a/jdk/src/share/bin/splashscreen_stubs.c
+++ b/jdk/src/share/bin/splashscreen_stubs.c
@@ -61,11 +61,11 @@ typedef char* (*SplashGetScaledImageName_t)(const char* fileName,
#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) {
--
2.44.0