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

Reviewed-by: azvegint, bae
This commit is contained in:
Staffan Larsen 2015-06-25 15:16:55 +03:00 committed by Sergey Bylokhov
parent 3d7db7c9f5
commit 9f34fe51a8
2 changed files with 1 additions and 2 deletions

View File

@ -275,7 +275,6 @@ SplashRedrawWindow(Splash * splash) {
[image addRepresentation: rep];
float scaleFactor = splash->scaleFactor;
if (scaleFactor > 0 && scaleFactor != 1) {
[image setScalesWhenResized:YES];
NSSize size = [image size];
size.width /= scaleFactor;
size.height /= scaleFactor;

View File

@ -852,7 +852,7 @@ setHints(JNIEnv *env, BufImageS_t *imageP) {
hintP->needToExpand = TRUE;
hintP->expandToNbits = cmodelP->maxNbits;
}
else if (rasterP->sppsm.offsets != NULL) {
else {
for (i=0; i < rasterP->numBands; i++) {
if (!(rasterP->sppsm.offsets[i] % 8)) {
hintP->needToExpand = TRUE;