diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-15 23:25:38 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-16 10:20:53 -0800 |
commit | afd6593da90e51234d59f8921c411317f91ab48b (patch) | |
tree | 57d7edb73514884c15f09d4b028b78b0c530c52c | |
parent | 7e3bf4dd83fec22bd568146de75e6d59eff74e21 (diff) |
XStringToKeysym: preserve constness when casting off unsignedness for strcmp
Fixes gcc warning:
StrKeysym.c:97:17: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/StrKeysym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StrKeysym.c b/src/StrKeysym.c index 4394e0cd..12fce687 100644 --- a/src/StrKeysym.c +++ b/src/StrKeysym.c @@ -94,7 +94,7 @@ XStringToKeysym(_Xconst char *s) { entry = &_XkeyTable[idx]; if ((entry[0] == sig1) && (entry[1] == sig2) && - !strcmp(s, (char *)entry + 6)) + !strcmp(s, (const char *)entry + 6)) { val = (entry[2] << 24) | (entry[3] << 16) | (entry[4] << 8) | entry[5]; |