]> granicus.if.org Git - python/commitdiff
Fix a compiler warning: in and out are unused in _Py_char2wchar() if
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 7 May 2013 21:48:56 +0000 (23:48 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 7 May 2013 21:48:56 +0000 (23:48 +0200)
HAVE_MBRTOWC is not defined

Python/fileutils.c

index 3c04e4969e240b37cff9fd4d4a725b94365b8a9e..bb0cd4350096441b679994817879e1bde03f8791 100644 (file)
@@ -254,9 +254,9 @@ _Py_char2wchar(const char* arg, size_t *size)
     wchar_t *res;
     size_t argsize;
     size_t count;
+#ifdef HAVE_MBRTOWC
     unsigned char *in;
     wchar_t *out;
-#ifdef HAVE_MBRTOWC
     mbstate_t mbs;
 #endif