tRemoving unused variable and silencing the compiler. - svkbd - Simple X11 onscreen keyboard.
(HTM) git clone git://r-36.net/svkbd
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit bd80a579dc5650348e78797f8d2c548d0b726c45
(DIR) parent d4336c659c3ba6639fd8737a5baa423eeadca2c4
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 3 Oct 2011 16:30:45 +0200
Removing unused variable and silencing the compiler.
Diffstat:
svkbd.c | 2 --
1 file changed, 0 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/svkbd.c b/svkbd.c
t@@ -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);