mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-03 06:38:00 +02:00
XRebindKeysym: Drop unnecessary const-removing cast
C89 defines memcpy as taking a const void *, so casting from const unsigned char * to char * simply angers gcc for no benefit: KeyBind.c:1017:24: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
54527eab93
commit
7e3bf4dd83
1 changed files with 1 additions and 1 deletions
|
|
@ -1014,7 +1014,7 @@ XRebindKeysym (
|
|||
dpy->key_bindings = p;
|
||||
dpy->free_funcs->key_bindings = _XFreeKeyBindings;
|
||||
p->next = tmp; /* chain onto list */
|
||||
memcpy (p->string, (char *) str, nbytes);
|
||||
memcpy (p->string, str, nbytes);
|
||||
p->len = nbytes;
|
||||
memcpy ((char *) p->modifiers, (char *) mlist, nb);
|
||||
p->key = keysym;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue