From f8b02477f97323927e1a0e19003540c0f44a804c Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 24 May 2024 14:56:14 +0200 Subject: [PATCH] Removed unused variables. --- coders/icon.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/coders/icon.c b/coders/icon.c index 031715bdd..48554af3c 100644 --- a/coders/icon.c +++ b/coders/icon.c @@ -460,16 +460,14 @@ static Image *ReadICONImage(const ImageInfo *image_info, else { size_t - number_colors, - x_pixels, - y_pixels; + number_colors; if (bits_per_pixel > 32) ThrowICONReaderException(CorruptImageError,"ImproperImageHeader"); (void) ReadBlobLSBLong(image); /* compression */ (void) ReadBlobLSBLong(image); /* image_size */ - x_pixels=ReadBlobLSBLong(image); - y_pixels=ReadBlobLSBLong(image); + (void) ReadBlobLSBLong(image); /* x_pixels */ + (void) ReadBlobLSBLong(image); /* y_pixels */ number_colors=ReadBlobLSBLong(image); if (number_colors > GetBlobSize(image)) ThrowICONReaderException(CorruptImageError,"InsufficientImageDataInFile");