mirror of https://github.com/python/cpython.git
Avoid a couple of "value computed is not used" warnings from gcc -Wall;
these computations are required for their side effects in traversing the variable arguments list. Reported by Marc-Andre Lemburg <mal@lemburg.com>.
This commit is contained in:
parent
66c9f0781d
commit
e693df94ed
|
@ -406,13 +406,13 @@ PyErr_Format(PyObject *exception, const char *format, ...)
|
|||
;
|
||||
switch (*f) {
|
||||
case 'c':
|
||||
va_arg(vargs, int);
|
||||
(void) va_arg(vargs, int);
|
||||
/* fall through... */
|
||||
case '%':
|
||||
n++;
|
||||
break;
|
||||
case 'd': case 'i': case 'x':
|
||||
va_arg(vargs, int);
|
||||
(void) va_arg(vargs, int);
|
||||
/* 20 bytes should be enough to hold a 64-bit
|
||||
integer */
|
||||
n = n + 20;
|
||||
|
|
Loading…
Reference in New Issue