* xfont.c (xfont_text_extents): Remove var that was set but not used.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 05:12:02 +0000 (22:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 05:12:02 +0000 (22:12 -0700)
src/ChangeLog
src/xfont.c

index 787b3e2..65488a6 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * xfont.c (xfont_text_extents): Remove var that was set but not used.
+
        * composite.c (composition_gstring_put_cache): Use unsigned integer.
 
 2011-04-04  Paul Eggert  <eggert@cs.ucla.edu>
index 3e0fcd2..8a3cacd 100644 (file)
@@ -966,11 +966,11 @@ xfont_text_extents (struct font *font, unsigned int *code, int nglyphs, struct f
 {
   XFontStruct *xfont = ((struct xfont_info *) font)->xfont;
   int width = 0;
-  int i, first, x;
+  int i, first;
 
   if (metrics)
     memset (metrics, 0, sizeof (struct font_metrics));
-  for (i = 0, x = 0, first = 1; i < nglyphs; i++)
+  for (i = 0, first = 1; i < nglyphs; i++)
     {
       XChar2b char2b;
       static XCharStruct *pcm;