* image.c (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.

This commit is contained in:
Paul Eggert
2011-04-01 19:38:27 -07:00
parent f661cb610a
commit 35fa624fb2
2 changed files with 2 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
2011-04-02 Paul Eggert <eggert@cs.ucla.edu>
* image.c (lookup_image): Remove var that is set but not used.
(xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
* fontset.c (Finternal_char_font, Ffontset_info): Remove vars
that are set but not used.

View File

@@ -2875,6 +2875,7 @@ xbm_load (struct frame *f, struct image *img)
/* Parse the image specification. */
memcpy (fmt, xbm_format, sizeof fmt);
parsed_p = parse_image_spec (img->spec, fmt, XBM_LAST, Qxbm);
(void) parsed_p;
xassert (parsed_p);
/* Get specified width, and height. */