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

jdk fails to build due to awt_parseImage.c:856:33: error: comparison of array 'rasterP->sppsm.offsets' not equal to a null pointer is always true [-Werror,-Wtautological-pointer-compare]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • client-libs
    • None
    • Mac OS X 10.10.3 with Xcode 6.3.1

      # make images
      Building target 'images' in configuration 'macosx-x86_64-normal-server-fastdebug'
      Updating libawt.dylib from 1 file(s)
      Updating libsplashscreen.dylib from 1 file(s)
      /Volumes/Work/current/jdks/jdk9/jdk/src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c:856:33: error: comparison of array 'rasterP->sppsm.offsets' not equal to a null pointer is always true [-Werror,-Wtautological-pointer-compare]
              else if (rasterP->sppsm.offsets != NULL) {
                       ~~~~~~~~~~~~~~~^~~~~~~ ~~~~
      1 error generated.
      make[3]: *** [/Volumes/Work/current/jdks/jdk9/build/macosx-x86_64-normal-server-fastdebug/support/native/java.desktop/libawt/awt_parseImage.o] Error 1
      make[3]: *** Waiting for unfinished jobs....
      make[2]: *** [java.desktop-libs] Error 2

      ERROR: Build failed for target 'images' in configuration 'macosx-x86_64-normal-server-fastdebug' (exit code 2)
      Hint: If caused by a warning, try configure --disable-warnings-as-errors

      make[1]: *** [main] Error 2
      make: *** [images] Error 2

            serb Sergey Bylokhov
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: