From: Paul Eggert Date: Sat, 2 Apr 2011 02:38:27 +0000 (-0700) Subject: * image.c (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~394^2~60 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=35fa624fb2b9b7d9230a94aefcd1699ab6c53c00;p=emacs.git * image.c (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2d26daf4fad..b629c5ca10d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,7 @@ 2011-04-02 Paul Eggert * 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. diff --git a/src/image.c b/src/image.c index 0a893c116b8..45bd590e415 100644 --- a/src/image.c +++ b/src/image.c @@ -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. */