From: Walter Dörwald Date: Thu, 21 Nov 2002 20:13:40 +0000 (+0000) Subject: Move three variables that are only used inside an if block into the block, X-Git-Tag: v2.3c1~3331 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c6c76559d0ff340fec8b665f49500784513dbd3;p=thirdparty%2FPython%2Fcpython.git Move three variables that are only used inside an if block into the block, so the --disable-unicode build doesn't complain about unused variables. --- diff --git a/Python/compile.c b/Python/compile.c index d916751ef7df..d612e5b4486d 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1244,9 +1244,6 @@ parsestr(struct compiling *c, char *s) { PyObject *v; size_t len; - char *buf; - char *p; - char *end; int quote = *s; int rawmode = 0; char* encoding = ((c == NULL) ? NULL : c->c_encoding); @@ -1289,6 +1286,9 @@ parsestr(struct compiling *c, char *s) #ifdef Py_USING_UNICODE if (unicode || Py_UnicodeFlag) { PyObject *u, *w; + char *buf; + char *p; + char *end; if (encoding == NULL) { buf = s; u = NULL;