]> granicus.if.org Git - python/commitdiff
Only declare variable when it's used.
authorGeorg Brandl <georg@python.org>
Tue, 27 Oct 2009 21:37:48 +0000 (21:37 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 27 Oct 2009 21:37:48 +0000 (21:37 +0000)
Modules/_localemodule.c

index d90a49df969339fa10663962da8eaa3f5f6b602b..fa6ab8fc6d89c048a952bf4092c4269f355c5061 100644 (file)
@@ -281,7 +281,9 @@ PyLocale_strxfrm(PyObject* self, PyObject* args)
     wchar_t *s, *buf = NULL;
     size_t n1, n2;
     PyObject *result = NULL;
+#ifndef HAVE_USABLE_WCHAR_T
     Py_ssize_t i;
+#endif
 
     if (!PyArg_ParseTuple(args, "u#:strxfrm", &s0, &n0))
         return NULL;