Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dffda2e

Browse files
committed
Wrap uargs declaration in a #ifdef Py_USING_UNICODE, so that
the --disable-unicode build doesn't complain about an unused variable.
1 parent 3b918c3 commit dffda2e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/getargs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,9 @@ convertsimple(PyObject *arg, char **p_format, va_list *p_va, char *msgbuf,
400400
{
401401
char *format = *p_format;
402402
char c = *format++;
403+
#ifdef Py_USING_UNICODE
403404
PyObject *uarg;
405+
#endif
404406

405407
switch (c) {
406408

0 commit comments

Comments
 (0)