mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-09 03:48:04 +02:00
i18n modules: Fix some const cast warnings
imRm.c: In function '_XimSetICMode': imRm.c:2419:37: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] imRm.c:2420:30: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] lcGenConv.c: In function 'byteM_parse_codeset': lcGenConv.c:345:13: 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
cbd86eccf1
commit
e7d46c6452
2 changed files with 3 additions and 3 deletions
|
|
@ -2416,8 +2416,8 @@ _XimSetICMode(XIMResourceList res_list, unsigned int list_num, XIMStyle style)
|
|||
list_num, ic_mode_quark[i]))) {
|
||||
continue;
|
||||
}
|
||||
res->mode = ( (*(unsigned short *)((char *)&ic_mode[i] + pre_offset))
|
||||
| (*(unsigned short *)((char *)&ic_mode[i] + sts_offset)));
|
||||
res->mode = ( (*(const unsigned short *)((const char *)&ic_mode[i] + pre_offset))
|
||||
| (*(const unsigned short *)((const char *)&ic_mode[i] + sts_offset)));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ byteM_parse_codeset(
|
|||
continue;
|
||||
|
||||
for (j = 0; j < codeset->length; j++) {
|
||||
ch = *((unsigned char *)(inbufptr + j));
|
||||
ch = *((const unsigned char *)(inbufptr + j));
|
||||
byteM_rec = byteM[j];
|
||||
byteinfo = byteM_rec.byteinfo;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue