-
Bug
-
Resolution: Fixed
-
P3
-
9
-
None
-
b74
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8136119 | emb-9 | Sergey Bylokhov | P3 | Resolved | Fixed | team |
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
/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
- backported by
-
JDK-8136119 Compilation errors with recent clang in awt_parseImage.c and splashscreen_sys.m
-
- Resolved
-
- duplicates
-
JDK-8129512 jdk build fails with splashscreen_sys.m:278 error: 'setScalesWhenResized:' is deprecated
-
- Closed
-
-
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]
-
- Closed
-