From: Georg Brandl Date: Tue, 27 Oct 2009 21:37:48 +0000 (+0000) Subject: Only declare variable when it's used. X-Git-Tag: v3.2a1~2293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9137391d59abd43c87383994483e5bce80ad3226;p=thirdparty%2FPython%2Fcpython.git Only declare variable when it's used. --- diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index d90a49df9693..fa6ab8fc6d89 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -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;