summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-10 21:10:35 +0000
committerFred Drake <fdrake@acm.org>2000-10-10 21:10:35 +0000
commit3d4545c33f47b65666b697a152ec7a8396143acb (patch)
tree861a75e8109995b78dd078ee69b5a169bce25ba6 /Python/errors.c
parentd1d599773920b0279f2628661a4deb73818917e1 (diff)
downloadcpython-3d4545c33f47b65666b697a152ec7a8396143acb.tar.gz
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/errors.c')
-rw-r--r--Python/errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c
index ba58790954..28dfbbe3f3 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;