From: Benjamin Peterson Date: Sat, 12 Jun 2010 17:47:06 +0000 (+0000) Subject: fix warning with ucs4 X-Git-Tag: v2.7rc2~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e5effaaa416bef3bbaf1d19171eef0d4b3401ba;p=thirdparty%2FPython%2Fcpython.git fix warning with ucs4 --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index ae26ab60dceb..0e378a5a4085 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2208,10 +2208,11 @@ PyUnicode_DecodeUTF32Stateful(const char *s, Py_UNICODE *p; #ifndef Py_UNICODE_WIDE int pairs = 0; + const unsigned char *qq; #else const int pairs = 0; #endif - const unsigned char *q, *e, *qq; + const unsigned char *q, *e; int bo = 0; /* assume native ordering by default */ const char *errmsg = ""; /* Offsets from q for retrieving bytes in the right order. */