silence some compiler warnings
This commit is contained in:
parent
a44fd6f72f
commit
362b2db9ab
@ -123,6 +123,9 @@ vips_compass_build( VipsObject *object )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
/* Silence compiler wrning.
|
||||||
|
*/
|
||||||
|
x = NULL;
|
||||||
g_assert( 0 );
|
g_assert( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -645,6 +645,7 @@ write_ppm( Write *write, int ascii )
|
|||||||
char *magic;
|
char *magic;
|
||||||
time_t timebuf;
|
time_t timebuf;
|
||||||
|
|
||||||
|
magic = "unset";
|
||||||
if( in->BandFmt == VIPS_FORMAT_FLOAT && in->Bands == 3 )
|
if( in->BandFmt == VIPS_FORMAT_FLOAT && in->Bands == 3 )
|
||||||
magic = "PF";
|
magic = "PF";
|
||||||
else if( in->BandFmt == VIPS_FORMAT_FLOAT && in->Bands == 1 )
|
else if( in->BandFmt == VIPS_FORMAT_FLOAT && in->Bands == 1 )
|
||||||
|
@ -128,6 +128,15 @@ vips_mosaic_build( VipsObject *object )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
/* Silence compiler warnings.
|
||||||
|
*/
|
||||||
|
dx0 = 0;
|
||||||
|
dy0 = 0;
|
||||||
|
scale1 = 0.0;
|
||||||
|
angle1 = 0.0;
|
||||||
|
dx1 = 0.0;
|
||||||
|
dy1 = 0.0;
|
||||||
|
|
||||||
g_assert( 0 );
|
g_assert( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user