From 25e2afde47d9b09c36deeb6322a6a8858145c9fe Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 9 Feb 2011 14:40:20 -0500 Subject: [PATCH] image: clean up warning --- src/libply-splash-graphics/ply-image.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libply-splash-graphics/ply-image.c b/src/libply-splash-graphics/ply-image.c index 4b16783b..3e09f68c 100644 --- a/src/libply-splash-graphics/ply-image.c +++ b/src/libply-splash-graphics/ply-image.c @@ -115,7 +115,7 @@ ply_image_load (ply_image_t *image) { png_struct *png; png_info *info; - png_uint_32 width, height, bytes_per_row, row; + png_uint_32 width, height, row; int bits_per_pixel, color_type, interlace_method; png_byte **rows; uint32_t *bytes; @@ -145,7 +145,6 @@ ply_image_load (ply_image_t *image) png_get_IHDR (png, info, &width, &height, &bits_per_pixel, &color_type, &interlace_method, NULL, NULL); - bytes_per_row = 4 * width; if (color_type == PNG_COLOR_TYPE_PALETTE) png_set_palette_to_rgb (png);