summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-10 21:10:35 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-10 21:10:35 (GMT)
commite693df94ed50e5083742b8c3bcb490c6b7fe03ac (patch)
tree61aa22ebec8caec5acc1b035949f3f735fb9d4d2 /Python
parent66c9f0781ded9c798764ecc1d3e82d687a307a98 (diff)
downloadcpython-e693df94ed50e5083742b8c3bcb490c6b7fe03ac.zip
cpython-e693df94ed50e5083742b8c3bcb490c6b7fe03ac.tar.gz
cpython-e693df94ed50e5083742b8c3bcb490c6b7fe03ac.tar.bz2
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>.
Diffstat (limited to 'Python')
-rw-r--r--Python/errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c
index ba58790..28dfbbe 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;