From 5a3a6aa71f8c875b2d045d02628a0fc54d422295 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 8 Oct 2015 13:42:38 -0700 Subject: [PATCH] Fix problems caught with --enable-gcc-warnings * src/image.c (lookup_rgb_color): * src/xfns.c (x_defined_color): * src/xterm.c (x_parse_color): Remove unused locals. --- src/image.c | 2 -- src/xfns.c | 1 - src/xterm.c | 1 - 3 files changed, 4 deletions(-) diff --git a/src/image.c b/src/image.c index 401689e940a..617cf70eb17 100644 --- a/src/image.c +++ b/src/image.c @@ -4431,8 +4431,6 @@ lookup_rgb_color (struct frame *f, int r, int g, int b) dpyinfo = FRAME_DISPLAY_INFO (f); if (dpyinfo->red_bits > 0) { - unsigned long pr, pg, pb; - /* Apply gamma-correction like normal color allocation does. */ if (f->gamma) { diff --git a/src/xfns.c b/src/xfns.c index 9c5bc2ba09f..f78e541f747 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -437,7 +437,6 @@ x_defined_color (struct frame *f, const char *color_name, XColor *color, bool alloc_p) { bool success_p = false; - Display *dpy = FRAME_X_DISPLAY (f); Colormap cmap = FRAME_X_COLORMAP (f); block_input (); diff --git a/src/xterm.c b/src/xterm.c index 83ef89c5d99..cd6cdb044c9 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2281,7 +2281,6 @@ Status x_parse_color (struct frame *f, const char *color_name, { Display *dpy = FRAME_X_DISPLAY (f); Colormap cmap = FRAME_X_COLORMAP (f); - Status status; struct color_name_cache_entry *cache_entry; if (color_name[0] == '#') -- 2.39.2