소스 검색

fix unused warnings

Mike Frysinger 20 년 전
부모
커밋
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;