Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8215009

GCC 8 compilation error in libjli

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b10

      Description

      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*.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dchuyko Dmitry Chuyko
                Reporter:
                dchuyko Dmitry Chuyko
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: