diff Python/errors.c @ 15148:a2fcc487b9da legacy-trunk

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>.
author Fred Drake <fdrake@acm.org>
date Tue, 10 Oct 2000 21:10:35 +0000
parents 6f6f965c5e2d
children e510c4cc5737 8aa947e1eee8
line wrap: on
line diff
--- a/Python/errors.c	Tue Oct 10 20:58:48 2000 +0000
+++ b/Python/errors.c	Tue Oct 10 21:10:35 2000 +0000
@@ -406,13 +406,13 @@
 				;
 			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;