Commit e693df94 authored by Fred Drake's avatar Fred Drake

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>.
parent 66c9f078
...@@ -406,13 +406,13 @@ PyErr_Format(PyObject *exception, const char *format, ...) ...@@ -406,13 +406,13 @@ PyErr_Format(PyObject *exception, const char *format, ...)
; ;
switch (*f) { switch (*f) {
case 'c': case 'c':
va_arg(vargs, int); (void) va_arg(vargs, int);
/* fall through... */ /* fall through... */
case '%': case '%':
n++; n++;
break; break;
case 'd': case 'i': case 'x': 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 /* 20 bytes should be enough to hold a 64-bit
integer */ integer */
n = n + 20; n = n + 20;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment