Explorar o código

fix unused warnings

Mike Frysinger %!s(int64=19) %!d(string=hai) anos
pai
achega
2dd3ea96d3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;