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

Compilation errors with recent clang in awt_parseImage.c and splashscreen_sys.m

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b74

      Backports

        Description

        With a recent upgrade of clang on OS X I see the following errors:

        /Users/staffan/mercurial/jdk9-hs-rt/jdk/src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c:855: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]: *** [/Users/staffan/mercurial/jdk9-hs-rt/build/macosx-x86_64-normal-server-fastdebug/support/native/java.desktop/libawt/awt_parseImage.o] Error 1
        make[3]: *** Waiting for unfinished jobs....
        /Users/staffan/mercurial/jdk9-hs-rt/jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m:278:20: error: 'setScalesWhenResized:' is deprecated: first deprecated in OS X 10.6 [-Werror,-Wdeprecated-declarations]
                    [image setScalesWhenResized:YES];
                           ^
        /System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:255:1: note: 'setScalesWhenResized:' has been explicitly marked deprecated here
        - (void)setScalesWhenResized:(BOOL)flag NS_DEPRECATED_MAC(10_0, 10_6);
        ^
        1 error generated.
        make[3]: *** [/Users/staffan/mercurial/jdk9-hs-rt/build/macosx-x86_64-normal-server-fastdebug/support/native/java.desktop/libsplashscreen/splashscreen_sys.o] Error 1

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  serb Sergey Bylokhov
                  Reporter:
                  sla Staffan Larsen (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: