]> granicus.if.org Git - python/commitdiff
fix warning with ucs4
authorBenjamin Peterson <benjamin@python.org>
Sat, 12 Jun 2010 17:47:06 +0000 (17:47 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 12 Jun 2010 17:47:06 +0000 (17:47 +0000)
Objects/unicodeobject.c

index ae26ab60dceb21d71c90671fdb062e19cef58a01..0e378a5a40855ee8d6d10967b148b802d3251fd1 100644 (file)
@@ -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. */