From 35fa624fb2b9b7d9230a94aefcd1699ab6c53c00 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 1 Apr 2011 19:38:27 -0700 Subject: [PATCH] * image.c (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable. --- src/ChangeLog | 1 + src/image.c | 1 + 2 files changed, 2 insertions(+) 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. */ -- 2.39.2