-
Bug
-
Resolution: Fixed
-
P4
-
11, 13
-
b10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8266759 | 11.0.13-oracle | Henry Jen | P4 | Resolved | Fixed | b01 |
JDK-8266616 | 11.0.12 | Matthias Baesken | P4 | Resolved | Fixed | b02 |
GCC 8 reports an error:
* For target support_native_java.base_libjli_java_md_solinux.o:
src/java.base/unix/native/libjli/java_md_solinux.c: In function 'ContinueInNewThread0':
src/java.base/unix/native/libjli/java_md_solinux.c:747:37: error: cast between incompatible function types from 'int (*)(void *)' to 'void * (*)(void *)' [-Werror=cast-function-type]
if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) {
^
It can be silenced by explicit intermediate cast of continuation to void*.
* For target support_native_java.base_libjli_java_md_solinux.o:
src/java.base/unix/native/libjli/java_md_solinux.c: In function 'ContinueInNewThread0':
src/java.base/unix/native/libjli/java_md_solinux.c:747:37: error: cast between incompatible function types from 'int (*)(void *)' to 'void * (*)(void *)' [-Werror=cast-function-type]
if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) {
^
It can be silenced by explicit intermediate cast of continuation to void*.
- backported by
-
JDK-8266616 GCC 8 compilation error in libjli
- Resolved
-
JDK-8266759 GCC 8 compilation error in libjli
- Resolved
- relates to
-
JDK-8213153 Clean up GCC 8 errors
- Closed