diff options
author | Darin Adler <darin@src.gnome.org> | 2001-07-18 04:25:04 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2001-07-18 04:25:04 +0000 |
commit | b0bb5ac3047f37ddf1a0a9b9c699cccb3b2a097f (patch) | |
tree | 8e7c773504d45479feff798d0883a47228a00071 /gdk-pixbuf/io-png.c | |
parent | fa506b18f154287eb90273439fb9e3e29f1c75f3 (diff) | |
download | gtk+-b0bb5ac3047f37ddf1a0a9b9c699cccb3b2a097f.tar.gz |
Add missing <stdlib.h> include. Add ifdef so we compile without warnings
* gdk-pixbuf-csource.c: Add missing <stdlib.h> include.
* io-png.c: (setup_png_transformations): Add ifdef so we compile
without warnings with G_DISABLE_CHECKS on.
* io-pnm.c: (gdk_pixbuf__pnm_image_load_increment): Add a missing
const.
* io-wbmp.c: (getin), (get_mbi): Add a missing const.
* io-xbm.c: (gdk_pixbuf__xbm_image_load_real): Get rid of some
unused locals and add an initial value to quiet the compiler's
unintialized variable warning.
* pixops/pixops.c: Put an ifdef around some dead code.
Diffstat (limited to 'gdk-pixbuf/io-png.c')
-rw-r--r-- | gdk-pixbuf/io-png.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c index 611bc9b060..0e582eb906 100644 --- a/gdk-pixbuf/io-png.c +++ b/gdk-pixbuf/io-png.c @@ -40,7 +40,9 @@ setup_png_transformations(png_structp png_read_ptr, png_infop png_info_ptr, { png_uint_32 width, height; int bit_depth, color_type, interlace_type, compression_type, filter_type; +#ifndef G_DISABLE_CHECKS int channels; +#endif /* Get the image info */ |