summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-13 15:19:02 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-13 15:20:41 -0800
commita4505ad3a938cfecb501b1ce806aa39ead42ec81 (patch)
tree790f778189d0ae4b224ff6696dcd7c23d2012abb
parent41ea77d4b64413648dd2fb61c42bf7b980b17783 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xwininfo.c b/xwininfo.c
index 73cc344..89863b2 100644
--- a/xwininfo.c
+++ b/xwininfo.c
@@ -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;