瀏覽代碼

fix unused warnings

Mike Frysinger 19 年之前
父節點
當前提交
2dd3ea96d3
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;