mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 19:08:11 +02:00
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>
This commit is contained in:
parent
4024091678
commit
46d04bc4e7
1 changed files with 0 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue