[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 5a3a6aa: Fix problems caught with --enable-gcc-warn
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 5a3a6aa: Fix problems caught with --enable-gcc-warnings |
Date: |
Thu, 08 Oct 2015 20:43:07 +0000 |
branch: master
commit 5a3a6aa71f8c875b2d045d02628a0fc54d422295
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
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, 0 insertions(+), 4 deletions(-)
diff --git a/src/image.c b/src/image.c
index 401689e..617cf70 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 9c5bc2b..f78e541 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 83ef89c..cd6cdb0 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] == '#')
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 5a3a6aa: Fix problems caught with --enable-gcc-warnings,
Paul Eggert <=