]> granicus.if.org Git - python/commitdiff
Wrap uargs declaration in a #ifdef Py_USING_UNICODE, so that
authorWalter Dörwald <walter@livinglogic.de>
Thu, 21 Nov 2002 20:23:11 +0000 (20:23 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 21 Nov 2002 20:23:11 +0000 (20:23 +0000)
the --disable-unicode build doesn't complain about an
unused variable.

Python/getargs.c

index cc0409dccc693d93a16634fb56b1a7634c8b00a8..58ef2a3fe9aa8e67ba14b55b99ae88288f0a421c 100644 (file)
@@ -400,7 +400,9 @@ convertsimple(PyObject *arg, char **p_format, va_list *p_va, char *msgbuf,
 {
        char *format = *p_format;
        char c = *format++;
+#ifdef Py_USING_UNICODE
        PyObject *uarg;
+#endif
        
        switch (c) {