fix some compiler warnings
This commit is contained in:
parent
c5a7db6eb6
commit
94f458ed04
|
@ -265,6 +265,10 @@ vips_composite_base_blend( VipsCompositeBase *composite,
|
||||||
*/
|
*/
|
||||||
for( int b = 0; b <= bands; b++ )
|
for( int b = 0; b <= bands; b++ )
|
||||||
A[b] = p[b] / composite->max_band[b];
|
A[b] = p[b] / composite->max_band[b];
|
||||||
|
/* Not necessary, but it stops a compiler warning.
|
||||||
|
*/
|
||||||
|
for( int b = bands + 1; b < MAX_BANDS + 1; b++ )
|
||||||
|
A[b] = 0.0;
|
||||||
|
|
||||||
aA = A[bands];
|
aA = A[bands];
|
||||||
aB = B[bands];
|
aB = B[bands];
|
||||||
|
@ -666,8 +670,12 @@ vips_composite_base_blend3( VipsCompositeBase *composite,
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached();
|
g_assert_not_reached();
|
||||||
|
|
||||||
|
/* Stop compiler warnings.
|
||||||
|
*/
|
||||||
for( int b = 0; b < 3; b++ )
|
for( int b = 0; b < 3; b++ )
|
||||||
B[b] = 0;
|
B[b] = 0;
|
||||||
|
f = A;
|
||||||
}
|
}
|
||||||
|
|
||||||
t1 = 1 - aB;
|
t1 = 1 - aB;
|
||||||
|
|
|
@ -2068,6 +2068,12 @@ rtiff_header_read( Rtiff *rtiff, RtiffHeader *header )
|
||||||
!tfget32( rtiff->tiff,
|
!tfget32( rtiff->tiff,
|
||||||
TIFFTAG_TILELENGTH, &header->tile_height ) )
|
TIFFTAG_TILELENGTH, &header->tile_height ) )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
|
/* Stop some compiler warnings.
|
||||||
|
*/
|
||||||
|
header->rows_per_strip = 0;
|
||||||
|
header->strip_size = 0;
|
||||||
|
header->number_of_strips = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if( !tfget32( rtiff->tiff,
|
if( !tfget32( rtiff->tiff,
|
||||||
|
@ -2100,6 +2106,11 @@ rtiff_header_read( Rtiff *rtiff, RtiffHeader *header )
|
||||||
header->number_of_strips = header->height;
|
header->number_of_strips = header->height;
|
||||||
header->read_scanlinewise = TRUE;
|
header->read_scanlinewise = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Stop some compiler warnings.
|
||||||
|
*/
|
||||||
|
header->tile_width = 0;
|
||||||
|
header->tile_height = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
Loading…
Reference in New Issue