From 9137391d59abd43c87383994483e5bce80ad3226 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 27 Oct 2009 21:37:48 +0000 Subject: [PATCH] Only declare variable when it's used. --- Modules/_localemodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index d90a49df96..fa6ab8fc6d 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; -- 2.50.1