fix a compiler warning

This commit is contained in:
John Cupitt 2021-03-27 11:35:07 +00:00
parent 8c4486327e
commit 9589a51f09

View File

@ -685,6 +685,10 @@ vips_thumbnail_build( VipsObject *object )
in = t[12];
}
/* Note the interpretation we will revert to after linear.
*/
input_interpretation = in->Type;
/* In linear mode, we need to transform to a linear space before
* vips_resize().
*/
@ -719,11 +723,6 @@ vips_thumbnail_build( VipsObject *object )
*/
VipsInterpretation interpretation;
/* Note the interpretation we will revert to after
* linear.
*/
input_interpretation = in->Type;
if( in->Bands < 3 )
interpretation = VIPS_INTERPRETATION_GREY16;
else