Removing unused variable and silencing the compiler.

This commit is contained in:
Christoph Lohmann 2011-10-03 16:30:45 +02:00
parent d4336c659c
commit bd80a579dc

View File

@ -261,11 +261,9 @@ initfont(const char *fontstr) {
XFreeStringList(missing);
}
if(dc.font.set) {
XFontSetExtents *font_extents;
XFontStruct **xfonts;
char **font_names;
dc.font.ascent = dc.font.descent = 0;
font_extents = XExtentsOfFontSet(dc.font.set);
n = XFontsOfFontSet(dc.font.set, &xfonts, &font_names);
for(i = 0, dc.font.ascent = 0, dc.font.descent = 0; i < n; i++) {
dc.font.ascent = MAX(dc.font.ascent, (*xfonts)->ascent);