From 7d3aaf540c10a6a7ff9570fde0b7d763b436cefa Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 23 May 2022 12:42:26 +0100 Subject: [PATCH] small formatting --- libvips/foreign/spngload.c | 8 +++----- libvips/foreign/spngsave.c | 2 -- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/libvips/foreign/spngload.c b/libvips/foreign/spngload.c index 13cb2931..5431a611 100644 --- a/libvips/foreign/spngload.c +++ b/libvips/foreign/spngload.c @@ -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; } diff --git a/libvips/foreign/spngsave.c b/libvips/foreign/spngsave.c index ca78f207..bfb12bb6 100644 --- a/libvips/foreign/spngsave.c +++ b/libvips/foreign/spngsave.c @@ -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 ) )