Fix many sparse warnings.

This commit is contained in:
Matthias Clasen
2004-10-28 15:00:05 +00:00
parent dbba41045e
commit d5f92150d4
53 changed files with 1673 additions and 1197 deletions

View File

@ -821,7 +821,7 @@ xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth)
image_info->stage_buf = NULL;
image_info->own_gc = 0;
image_info->own_gc = NULL;
image_info->red_shift = 0;
image_info->red_prec = 0;
@ -908,7 +908,7 @@ xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth)
image_info->x_visual_info->visual,
1,
XYBitmap,
0, 0, IMAGE_WIDTH, IMAGE_HEIGHT,
0, NULL, IMAGE_WIDTH, IMAGE_HEIGHT,
8,
0);
static_image[i]->data = malloc(IMAGE_WIDTH * IMAGE_HEIGHT >> 3);
@ -920,7 +920,7 @@ xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth)
image_info->x_visual_info->visual,
(unsigned int)image_info->x_visual_info->depth,
ZPixmap,
0, 0,
0, NULL,
IMAGE_WIDTH,
IMAGE_HEIGHT,
32, 0);
@ -3651,7 +3651,7 @@ xlib_rgb_get_visual (void)
if (image_info)
return image_info->x_visual_info->visual;
else
return 0;
return NULL;
}
/**
@ -3668,7 +3668,7 @@ xlib_rgb_get_visual_info (void)
if (image_info)
return image_info->x_visual_info;
else
return 0;
return NULL;
}
/**