From 46d04bc4e7ff6c86385002c929d8eb0310f737a8 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 4 May 2011 11:35:31 -0700 Subject: [PATCH] Dead code removal XKBGeom.c:118:27: warning: Assigned value is always the same as the existing value for (key=row->keys,pos=k=0;knum_keys;k++,key++) { ~~~^~~~ XKBGeom.c:115:5: warning: Value stored to 'pos' is never read pos= 0; ^ ~ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston --- src/xkb/XKBGeom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/xkb/XKBGeom.c b/src/xkb/XKBGeom.c index 2365f480..71a7d4ac 100644 --- a/src/xkb/XKBGeom.c +++ b/src/xkb/XKBGeom.c @@ -112,7 +112,6 @@ XkbBoundsPtr bounds,sbounds; if ((!geom)||(!section)||(!row)) return False; - pos= 0; bounds= &row->bounds; bzero(bounds,sizeof(XkbBoundsRec)); for (key=row->keys,pos=k=0;knum_keys;k++,key++) {