]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix problems caught with --enable-gcc-warnings
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 8 Oct 2015 20:42:38 +0000 (13:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 8 Oct 2015 20:43:02 +0000 (13:43 -0700)
* src/image.c (lookup_rgb_color):
* src/xfns.c (x_defined_color):
* src/xterm.c (x_parse_color):
Remove unused locals.

src/image.c
src/xfns.c
src/xterm.c

index 401689e940a189d38327f1165a0cf76c4110cc64..617cf70eb171c028b6e5bf824f7e4241f8f6264a 100644 (file)
@@ -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)
        {
index 9c5bc2ba09f2e0436a5827df1216ce8e334db44d..f78e541f747f0c361f86da1c15eedea700ccd55d 100644 (file)
@@ -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 ();
index 83ef89c5d990ed32f25d4b05d0e6d5c2bd03a8cb..cd6cdb044c98e2bcbdb32166a3221c42e4428b99 100644 (file)
@@ -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] == '#')