From d675c669c8250b7da55747c81a5bd01504449e6e Mon Sep 17 00:00:00 2001 From: Peter Kasting Date: Mon, 26 Jul 2021 21:45:09 -0700 Subject: [PATCH] Fix an instance of -Wunused-but-set-variable. See https://github.com/glennrp/libpng/pull/388 --- pngread.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/pngread.c b/pngread.c index 8fa7d9f16..5ab922403 100644 --- a/pngread.c +++ b/pngread.c @@ -3452,7 +3452,6 @@ png_image_read_background(png_voidp argument) for (pass = 0; pass < passes; ++pass) { - png_bytep row = png_voidcast(png_bytep, display->first_row); unsigned int startx, stepx, stepy; png_uint_32 y; @@ -3557,8 +3556,6 @@ png_image_read_background(png_voidp argument) inrow += 2; /* gray and alpha channel */ } - - row += display->row_bytes; } } }