small formatting

This commit is contained in:
John Cupitt 2022-05-23 12:42:26 +01:00
parent 047bef50d9
commit 7d3aaf540c
2 changed files with 3 additions and 7 deletions

View File

@ -204,8 +204,6 @@ vips_foreign_load_png_set_text( VipsImage *out,
static int
vips_foreign_load_png_set_header( VipsForeignLoadPng *png, VipsImage *image )
{
VipsObjectClass *class = VIPS_OBJECT_GET_CLASS( png );
double xres, yres;
struct spng_iccp iccp;
struct spng_exif exif;
@ -256,10 +254,10 @@ vips_foreign_load_png_set_header( VipsForeignLoadPng *png, VipsImage *image )
/* Very large numbers of text chunks are used in DoS
* attacks.
*/
if( !png->unlimited && n_text > MAX_PNG_TEXT_CHUNKS ) {
g_warning(_( "%d text chunks, only %d text chunks will be loaded" ),
n_text, MAX_PNG_TEXT_CHUNKS );
g_warning( _( "%d text chunks, "
"only %d text chunks will be loaded" ),
n_text, MAX_PNG_TEXT_CHUNKS );
n_text = MAX_PNG_TEXT_CHUNKS;
}

View File

@ -566,8 +566,6 @@ vips_foreign_save_spng_build( VipsObject *object )
VipsForeignSaveSpng *spng = (VipsForeignSaveSpng *) object;
VipsImage *in;
VipsInterpretation interpretation;
VipsImage *x;
if( VIPS_OBJECT_CLASS( vips_foreign_save_spng_parent_class )->
build( object ) )