]> git.eshelyaron.com Git - emacs.git/commitdiff
* image.c (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2011 02:38:27 +0000 (19:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2011 02:38:27 +0000 (19:38 -0700)
src/ChangeLog
src/image.c

index 2d26daf4fad1b57aeaddfa8e9c3b9c2925a7687a..b629c5ca10d8386146606615fd4fa95ae09aa371 100644 (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.
index 0a893c116b8cfce9eebbee275192ccbfd95f53af..45bd590e415a8b7f907b5dbfe227447a0f085a99 100644 (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.  */