diff options
author | Kim Woelders <kim@woelders.dk> | 2024-03-28 17:29:26 +0100 |
---|---|---|
committer | Kim Woelders <kim@woelders.dk> | 2024-04-03 20:04:07 +0200 |
commit | 6171150fe9f8edad3f1cfb14cec59e6a42a9c15b (patch) | |
tree | 19cbcce5e02b45a55c9c2c5c5537c3a03ad8e37d /xtrans.m4 | |
parent | c219be946b1d8a641dcbc7a60904293f105e2866 (diff) |
TRANS(ParseAddress): Fix "assignment discards ‘const’ qualifier" warnings
Occurs when compiling xserver master with gcc 13.2.1.
In file included from /local/stuff/xorg/include/X11/Xtrans/transport.c:69,
from ../os/xstrans.c:17:
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c: In function ‘_XSERVTransParseAddress’:
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:216:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
216 | _host = "";
| ^
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:217:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
217 | _port = address;
| ^
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:229:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
229 | _host = "";
| ^
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:230:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
230 | _port = address + 5;
| ^
Signed-off-by: Kim Woelders <kim@woelders.dk>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/16>
Diffstat (limited to 'xtrans.m4')
0 files changed, 0 insertions, 0 deletions