[libpng16] Quieted about 100 warnings from clang-3.8 in pngtrans.c, pngread.c,

pngwrite.c, pngunknown.c, and pngvalid.c.  Several warnings still remain
in pngvalid.c
This commit is contained in:
Glenn Randers-Pehrson
2016-09-30 21:02:03 -05:00
parent 1b363fa6b0
commit 97dfccb632
6 changed files with 24 additions and 21 deletions

View File

@@ -3228,10 +3228,10 @@ png_image_read_colormapped(png_voidp argument)
while (--passes >= 0)
{
png_uint_32 y = image->height;
png_uint_32 y = image->height + 1;
png_bytep row = png_voidcast(png_bytep, display->first_row);
while (y-- > 0)
while (y-- > 1)
{
png_read_row(png_ptr, row, NULL);
row += row_bytes;
@@ -4061,10 +4061,10 @@ png_image_read_direct(png_voidp argument)
while (--passes >= 0)
{
png_uint_32 y = image->height;
png_uint_32 y = image->height + 1;
png_bytep row = png_voidcast(png_bytep, display->first_row);
while (y-- > 0)
while (y-- > 1)
{
png_read_row(png_ptr, row, NULL);
row += row_bytes;