diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-10 22:18:00 -0700 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:28 +0200 |
commit | e667b9054308dd2033d3771a0656dd485286e855 (patch) | |
tree | 17e7e8c708f79d5283a429a0ca50e544e7f5c013 /nx-X11/lib/X11/SetClMask.c | |
parent | d2671c285e1923acae674ef9390a3f8bf23c11b3 (diff) | |
download | nx-libs-e667b9054308dd2033d3771a0656dd485286e855.tar.gz nx-libs-e667b9054308dd2033d3771a0656dd485286e855.tar.bz2 nx-libs-e667b9054308dd2033d3771a0656dd485286e855.zip |
Fix const handling in XSetLocaleModifiers
Instead of reusing the input parameter to store the output, make a
result variable instead, so that there's less const confusion.
Fixes gcc warnings:
lcWrap.c: In function 'XSetLocaleModifiers':
lcWrap.c:87:18: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
lcWrap.c:91:25: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
lcWrap.c:93:12: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/SetClMask.c')
0 files changed, 0 insertions, 0 deletions