Fix remaining warnings

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-02-24 16:10:06 +02:00
parent eff72fab5d
commit 744527e9a9
3 changed files with 6 additions and 6 deletions

View File

@ -3592,11 +3592,11 @@ CopySectionDef(struct xkb_geometry * geom, SectionInfo * si, GeometryInfo * info
key->shape_ndx = 0; key->shape_ndx = 0;
else else
{ {
ShapeInfo *si; ShapeInfo *shapei;
si = FindShape(info, ki->shape, "key", keyText(ki)); shapei = FindShape(info, ki->shape, "key", keyText(ki));
if (!si) if (!shapei)
return False; return False;
key->shape_ndx = si->index; key->shape_ndx = shapei->index;
} }
if (ki->color != None) if (ki->color != None)
color = color =

View File

@ -1678,7 +1678,7 @@ FindKeyForSymbol(struct xkb_desc * xkb, uint32_t sym, xkb_keycode_t *kc_rtrn)
if (j < (int) XkbKeyNumSyms(xkb, i)) if (j < (int) XkbKeyNumSyms(xkb, i))
{ {
gotOne = True; gotOne = True;
if ((XkbKeySym(xkb, i, j) == sym)) if (XkbKeySym(xkb, i, j) == sym)
{ {
*kc_rtrn = i; *kc_rtrn = i;
return True; return True;

View File

@ -114,7 +114,7 @@ uError(const char *s, ...);
#define FATAL uFatalError #define FATAL uFatalError
extern __ATTR_PRINTF(1, 2) void extern __ATTR_PRINTF(1, 2) _X_NORETURN void
uFatalError(const char *s, ...); uFatalError(const char *s, ...);
/* WSGO stands for "Weird Stuff Going On" (wtf???) */ /* WSGO stands for "Weird Stuff Going On" (wtf???) */