Removing unused variable and silencing the compiler.

master
Christoph Lohmann 13 years ago
parent d4336c659c
commit bd80a579dc
  1. 2
      svkbd.c

@ -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);

Loading…
Cancel
Save