diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-13 15:19:02 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-13 15:20:41 -0800 |
commit | a4505ad3a938cfecb501b1ce806aa39ead42ec81 (patch) | |
tree | 790f778189d0ae4b224ff6696dcd7c23d2012abb | |
parent | 41ea77d4b64413648dd2fb61c42bf7b980b17783 (diff) |
Silence -Wdiscarded-qualifiers warning on systems with non-const iconv
xwininfo.c: In function ‘print_utf8’:
xwininfo.c:1914:26: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
ICONV_CONST char *inp = u8str;
^~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xwininfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1911,7 +1911,7 @@ print_utf8 (const char *prefix, const char *u8str, size_t length, const char *su if (iconv_from_utf8 != (iconv_t) -1) { Bool done = True; - ICONV_CONST char *inp = u8str; + ICONV_CONST char *inp = (ICONV_CONST char *) u8str; char convbuf[BUFSIZ]; int convres; |