* xfont.c (xfont_text_extents): Remove var that was set but not used.

This commit is contained in:
Paul Eggert 2011-04-04 22:12:02 -07:00
parent 27ccc379bf
commit bc7b669731
2 changed files with 4 additions and 2 deletions

View 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>

View 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;