summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-05-07 21:48:56 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-05-07 21:48:56 (GMT)
commit313f10c7224feb938f0d2de85455761ec371d382 (patch)
tree5a5f25c34e14b93ce3aa3b0d13e4bb90f37c6103 /Python
parentc41917f4cb1287cddd36b78079a051bda6c42e40 (diff)
downloadcpython-313f10c7224feb938f0d2de85455761ec371d382.zip
cpython-313f10c7224feb938f0d2de85455761ec371d382.tar.gz
cpython-313f10c7224feb938f0d2de85455761ec371d382.tar.bz2
Fix a compiler warning: in and out are unused in _Py_char2wchar() if
HAVE_MBRTOWC is not defined
Diffstat (limited to 'Python')
-rw-r--r--Python/fileutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c
index 3c04e49..bb0cd43 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -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