Wrap uargs declaration in a #ifdef Py_USING_UNICODE, so that

the --disable-unicode build doesn't complain about an
unused variable.
This commit is contained in:
Walter Dörwald 2002-11-21 20:23:11 +00:00
parent 3b918c3787
commit dffda2eaf9
1 changed files with 2 additions and 0 deletions

View File

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