Browse Source

fix unused warnings

Mike Frysinger 19 years ago
parent
commit
2dd3ea96d3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/stdio/scanf.c

+ 2 - 2
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;