summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-xbm.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-07-18 04:25:04 +0000
committerDarin Adler <darin@src.gnome.org>2001-07-18 04:25:04 +0000
commitb0bb5ac3047f37ddf1a0a9b9c699cccb3b2a097f (patch)
tree8e7c773504d45479feff798d0883a47228a00071 /gdk-pixbuf/io-xbm.c
parentfa506b18f154287eb90273439fb9e3e29f1c75f3 (diff)
downloadgdk-pixbuf-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-xbm.c')
-rw-r--r--gdk-pixbuf/io-xbm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk-pixbuf/io-xbm.c b/gdk-pixbuf/io-xbm.c
index 0041488eb..47ce269f6 100644
--- a/gdk-pixbuf/io-xbm.c
+++ b/gdk-pixbuf/io-xbm.c
@@ -272,9 +272,9 @@ gdk_pixbuf__xbm_image_load_real (FILE *f, XBMData *context, GError **error)
guchar *pixels;
guint row_stride;
int x, y;
- int reg, bits;
+ int reg = 0; /* Quiet compiler */
+ int bits;
- int num_pixs;
GdkPixbuf *pixbuf;
if (!read_bitmap_file_data (f, &w, &h, &data, &x_hot, &y_hot)) {