mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-21 12:03:55 -08:00
* image.c (four_corners_best): Mark locals as initialized.
(gif_load): Initialize transparent_p to zero (Bug#8238). Mark another local as initialized.
This commit is contained in:
parent
6ae141d682
commit
f0c77cd1b2
2 changed files with 9 additions and 3 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* image.c (four_corners_best): Mark locals as initialized.
|
||||
(gif_load): Initialize transparent_p to zero (Bug#8238).
|
||||
Mark another local as initialized.
|
||||
|
||||
2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* image.c (clear_image_cache): Now static.
|
||||
|
|
|
|||
|
|
@ -1137,7 +1137,7 @@ static RGB_PIXEL_COLOR
|
|||
four_corners_best (XImagePtr_or_DC ximg, int *corners,
|
||||
unsigned long width, unsigned long height)
|
||||
{
|
||||
RGB_PIXEL_COLOR corner_pixels[4], best;
|
||||
RGB_PIXEL_COLOR corner_pixels[4], best IF_LINT (= 0);
|
||||
int i, best_count;
|
||||
|
||||
if (corners && corners[BOT_CORNER] >= 0)
|
||||
|
|
@ -7103,7 +7103,7 @@ gif_load (struct frame *f, struct image *img)
|
|||
Lisp_Object file, specified_file;
|
||||
Lisp_Object specified_data;
|
||||
int rc, width, height, x, y, i;
|
||||
boolean transparent_p;
|
||||
boolean transparent_p = 0;
|
||||
XImagePtr ximg;
|
||||
ColorMapObject *gif_color_map;
|
||||
unsigned long pixel_colors[256];
|
||||
|
|
@ -7112,7 +7112,7 @@ gif_load (struct frame *f, struct image *img)
|
|||
int ino, image_height, image_width;
|
||||
gif_memory_source memsrc;
|
||||
unsigned char *raster;
|
||||
unsigned int transparency_color_index;
|
||||
unsigned int transparency_color_index IF_LINT (= 0);
|
||||
|
||||
specified_file = image_spec_value (img->spec, QCfile, NULL);
|
||||
specified_data = image_spec_value (img->spec, QCdata, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue