summaryrefslogtreecommitdiff
path: root/pngwtran.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-11-21 14:06:41 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-11-21 14:06:41 -0600
commitb3edc73afa01b101e8e9773a2298d082bb2c0823 (patch)
treef62a0c9896e87c73a8c63b1bfce06ea9db300c45 /pngwtran.c
parent105c416007eb6093812af0799fee7dec52199686 (diff)
downloadlibpng-b3edc73afa01b101e8e9773a2298d082bb2c0823.tar.gz
[devel] Changes to remove gcc warnings (John Bowler)
Certain optional gcc warning flags resulted in warnings in libpng code. With these changes only -Wconversion and -Wcast-qual cannot be turned on. Changes are trivial rearrangements of code. -Wconversion is not possible for pngrutil.c (because of the widespread use of += et al on variables smaller than (int) or (unsigned int)) and -Wcast-qual is not possible with pngwio.c and pngwutil.c because the 'write' callback and zlib compression both fail to declare their input buffers with 'const'.
Diffstat (limited to 'pngwtran.c')
-rw-r--r--pngwtran.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pngwtran.c b/pngwtran.c
index 066e1e2c9..1765ef89d 100644
--- a/pngwtran.c
+++ b/pngwtran.c
@@ -220,6 +220,9 @@ png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
break;
}
+
+ default:
+ break;
}
row_info->bit_depth = (png_byte)bit_depth;