libc: cast free() argument to void * in wchar.c
commitd1c744fbde608f69a180b5c161f6a437e4779e83
authorYuriy Kolerov <ykolerov@synopsys.com>
Fri, 14 Jun 2024 17:15:34 +0000 (14 18:15 +0100)
committerWaldemar Brodkorb <wbx@openadk.org>
Sat, 15 Jun 2024 08:36:08 +0000 (15 10:36 +0200)
treebe645f208a906ecef3143ce9b750d93831f5655d
parentd3a86aa756f17e0afd5d4ec634c88fc2f3f1587a
libc: cast free() argument to void * in wchar.c

iconv_close() accepts iconv_t type (which is void *) and passes
it to free() which accepts void *. However, GCC 14 raises a
-Wint-conversion warning if it is not casted to void * because
GCC cannot unwind typedef of iconv_t.

Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
libc/misc/wchar/wchar.c