]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
image: clean up warning
authorRay Strode <rstrode@redhat.com>
Wed, 9 Feb 2011 19:40:20 +0000 (14:40 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 9 Feb 2011 20:07:14 +0000 (15:07 -0500)
src/libply-splash-graphics/ply-image.c

index 4b16783bb87723b796e96dc396bb157270b39555..3e09f68cbc53e9981a4686838f2e822eced86e80 100644 (file)
@@ -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);