silence some compiler warnings

This commit is contained in:
John Cupitt 2014-06-29 10:34:42 +01:00
parent a44fd6f72f
commit 362b2db9ab
3 changed files with 13 additions and 0 deletions

View File

@ -123,6 +123,9 @@ vips_compass_build( VipsObject *object )
break;
default:
/* Silence compiler wrning.
*/
x = NULL;
g_assert( 0 );
}

View File

@ -645,6 +645,7 @@ write_ppm( Write *write, int ascii )
char *magic;
time_t timebuf;
magic = "unset";
if( in->BandFmt == VIPS_FORMAT_FLOAT && in->Bands == 3 )
magic = "PF";
else if( in->BandFmt == VIPS_FORMAT_FLOAT && in->Bands == 1 )

View File

@ -128,6 +128,15 @@ vips_mosaic_build( VipsObject *object )
break;
default:
/* Silence compiler warnings.
*/
dx0 = 0;
dy0 = 0;
scale1 = 0.0;
angle1 = 0.0;
dx1 = 0.0;
dy1 = 0.0;
g_assert( 0 );
}