diff --git a/Python/errors.c b/Python/errors.c index ba587909541..28dfbbe3f3a 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -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;