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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • None
    • b74

        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

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

                Created:
                Updated:
                Resolved: