From 6f9a9160c4006aecfc8ca5248e7e4bf8154aff62 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Wed, 25 Apr 2012 13:36:25 +0200 Subject: Fix some compiler warnings thrown with newer gcc. --- test/tjbench.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/tjbench.c b/test/tjbench.c index b1f343f..29aa153 100644 --- a/test/tjbench.c +++ b/test/tjbench.c @@ -38,7 +38,8 @@ #define _throw(op, err) { \ printf("ERROR in line %d while %s:\n%s\n", __LINE__, op, err); \ - retval=-1; goto bailout;} + (void)retval; /* silence warning */ \ + retval=-1; goto bailout;} #define _throwunix(m) _throw(m, strerror(errno)) #define _throwtj(m) _throw(m, tjGetErrorStr()) #define _throwbmp(m) _throw(m, bmpgeterr()) -- cgit v1.2.3