-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b11
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8332173 | 22.0.2 | Jan Kratochvil | P4 | Resolved | Fixed | b06 |
JDK-8332192 | 21.0.4 | Jan Kratochvil | P4 | Resolved | Fixed | b03 |
JDK-8332446 | 17.0.12 | Jan Kratochvil | P4 | Resolved | Fixed | b04 |
Cherry-pick a fix from Harfbuzz upstream
Apply other -Wcalloc-transposed-args fixes to the JDK sources
-Wcalloc-transposed-args errors out with gcc 14 as the OpenJDK build uses
-Werror.
The calloc prototype is:
void *calloc(size_t nmemb, size_t size);
So, just swap the number of members and size arguments to match the prototype, as
we're initialising 1 struct of size sizeof(struct ...). GCC then sees we're not
doing anything wrong.
- backported by
-
JDK-8332173 Compilation failures in java.desktop module with gcc 14
- Resolved
-
JDK-8332192 Compilation failures in java.desktop module with gcc 14
- Resolved
-
JDK-8332446 Compilation failures in java.desktop module with gcc 14
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/0e524e2f
-
Commit openjdk/jdk21u-dev/035e3144
-
Commit openjdk/jdk22u/9486b7c2
-
Commit openjdk/jdk/8e5f6ddb
-
Review openjdk/jdk17u-dev/2468
-
Review openjdk/jdk21u-dev/566
-
Review openjdk/jdk22u/199
-
Review openjdk/jdk/17506