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

    • b67
    • Not verified

        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

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

                Created:
                Updated:
                Resolved: