aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/XKBGeom.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-05-04 11:35:31 -0700
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:25 +0200
commit1d806a5550490ab2d97ddd3daf3b1e1eb2a779b8 (patch)
tree0e67e85ddf48d3088e786954161e92b6cb2d1842 /nx-X11/lib/X11/XKBGeom.c
parent8127b17dc289831a559944a51d0ea10028016df5 (diff)
downloadnx-libs-1d806a5550490ab2d97ddd3daf3b1e1eb2a779b8.tar.gz
nx-libs-1d806a5550490ab2d97ddd3daf3b1e1eb2a779b8.tar.bz2
nx-libs-1d806a5550490ab2d97ddd3daf3b1e1eb2a779b8.zip
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;k<row->num_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 <jeremyhu@apple.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/XKBGeom.c')
-rw-r--r--nx-X11/lib/X11/XKBGeom.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/XKBGeom.c b/nx-X11/lib/X11/XKBGeom.c
index 1f9628bea..39ed4bed7 100644
--- a/nx-X11/lib/X11/XKBGeom.c
+++ b/nx-X11/lib/X11/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;k<row->num_keys;k++,key++) {