aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2015-10-08 13:42:38 -0700
committerPaul Eggert2015-10-08 13:43:02 -0700
commit5a3a6aa71f8c875b2d045d02628a0fc54d422295 (patch)
tree36f83a288b0f983238270666602efb688aa1480e /src
parent52fecf53e2756ddb765c5bea49edaae507671a1b (diff)
downloademacs-5a3a6aa71f8c875b2d045d02628a0fc54d422295.tar.gz
emacs-5a3a6aa71f8c875b2d045d02628a0fc54d422295.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/image.c2
-rw-r--r--src/xfns.c1
-rw-r--r--src/xterm.c1
3 files changed, 0 insertions, 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)
4431 dpyinfo = FRAME_DISPLAY_INFO (f); 4431 dpyinfo = FRAME_DISPLAY_INFO (f);
4432 if (dpyinfo->red_bits > 0) 4432 if (dpyinfo->red_bits > 0)
4433 { 4433 {
4434 unsigned long pr, pg, pb;
4435
4436 /* Apply gamma-correction like normal color allocation does. */ 4434 /* Apply gamma-correction like normal color allocation does. */
4437 if (f->gamma) 4435 if (f->gamma)
4438 { 4436 {
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,
437 XColor *color, bool alloc_p) 437 XColor *color, bool alloc_p)
438{ 438{
439 bool success_p = false; 439 bool success_p = false;
440 Display *dpy = FRAME_X_DISPLAY (f);
441 Colormap cmap = FRAME_X_COLORMAP (f); 440 Colormap cmap = FRAME_X_COLORMAP (f);
442 441
443 block_input (); 442 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,
2281{ 2281{
2282 Display *dpy = FRAME_X_DISPLAY (f); 2282 Display *dpy = FRAME_X_DISPLAY (f);
2283 Colormap cmap = FRAME_X_COLORMAP (f); 2283 Colormap cmap = FRAME_X_COLORMAP (f);
2284 Status status;
2285 struct color_name_cache_entry *cache_entry; 2284 struct color_name_cache_entry *cache_entry;
2286 2285
2287 if (color_name[0] == '#') 2286 if (color_name[0] == '#')