summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-21 21:54:58 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-21 21:54:58 +0000
commit2dd3ea96d35b9a58a075589040e15e979b0f566b (patch)
treebdcd1ed3b8a51a517b2dce5cde3f0b930b225be8 /libc
parentdeffc82c65c342b3a7ad8b62514a016a5bf211bf (diff)
fix unused warnings
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/scanf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/scanf.c b/libc/stdio/scanf.c
index cfe52d94f..b6fc1a699 100644
--- a/libc/stdio/scanf.c
+++ b/libc/stdio/scanf.c
@@ -1182,9 +1182,9 @@ int VFSCANF (FILE *__restrict fp, const Wchar *__restrict format, va_list arg)
wchar_t *wb;
#endif /* L_vfwscanf */
-#ifdef __UCLIBC_HAS_WCHAR__
+#if defined(__UCLIBC_HAS_LOCALE__) && !defined(L_vfwscanf) || !defined(L_vfscanf)
mbstate_t mbstate;
-#endif /* __UCLIBC_HAS_WCHAR__ */
+#endif
struct scan_cookie sc;
psfs_t psfs;