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

Compilation error with recent clang in java.base/share/native/launcher/main.c: error: comparison of array 'const_jargs' not equal to a null pointer is always true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b67
    • Verification:
      Not verified

      Backports

        Description

        A recent upgrade of clang on OS X gives me this error:

        /Users/staffan/mercurial/jdk9-hs-rt/jdk/src/java.base/share/native/launcher/main.c:132:21: error: comparison of array 'const_jargs' not equal to a null pointer is always true [-Werror,-Wtautological-pointer-compare]
                           (const_jargs != NULL) ? JNI_TRUE : JNI_FALSE,
                            ^~~~~~~~~~~ ~~~~
        1 error generated.
        make[3]: *** [/Users/staffan/mercurial/jdk9-hs-rt/build/macosx-x86_64-normal-server-fastdebug/support/native/java.corba/idlj_objs/main.o] Error 1

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ksrini Kumar Srinivasan
                Reporter:
                sla Staffan Larsen (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: