fix a compiler wanring
thank you clang
This commit is contained in:
parent
bcf914bce7
commit
49d51e4eb6
@ -246,10 +246,14 @@ thumbnail_process( VipsObject *process, const char *filename )
|
|||||||
interesting = VIPS_INTERESTING_NONE;
|
interesting = VIPS_INTERESTING_NONE;
|
||||||
if( crop_image )
|
if( crop_image )
|
||||||
interesting = VIPS_INTERESTING_CENTRE;
|
interesting = VIPS_INTERESTING_CENTRE;
|
||||||
if( smartcrop_image &&
|
if( smartcrop_image ) {
|
||||||
(interesting = vips_enum_from_nick( "vipsthumbnail",
|
int n;
|
||||||
|
|
||||||
|
if( (n = vips_enum_from_nick( "vipsthumbnail",
|
||||||
VIPS_TYPE_INTERESTING, smartcrop_image )) < 0 )
|
VIPS_TYPE_INTERESTING, smartcrop_image )) < 0 )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
|
interesting = n;
|
||||||
|
}
|
||||||
|
|
||||||
if( vips_thumbnail( filename, &image, thumbnail_width,
|
if( vips_thumbnail( filename, &image, thumbnail_width,
|
||||||
"height", thumbnail_height,
|
"height", thumbnail_height,
|
||||||
|
Loading…
Reference in New Issue
Block a user