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.
This commit is contained in:
Darin Adler
2001-07-18 04:25:04 +00:00
parent fa506b18f1
commit b0bb5ac304
7 changed files with 23 additions and 5 deletions

View File

@ -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)) {