• Alan Coopersmith's avatar
    Fix const handling in XSetLocaleModifiers · e667b905
    Alan Coopersmith authored
    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: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
    e667b905
lcWrap.c 13.3 KB