summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2012-04-25 13:36:25 +0200
committerChristian Beier <dontmind@freeshell.org>2012-04-25 13:36:25 +0200
commit6f9a9160c4006aecfc8ca5248e7e4bf8154aff62 (patch)
treed431846a3e07b4bf8a71a6934959178392476b49 /test
parent413ca0dfef83b98f7b230e0596ac086d42eaad4e (diff)
downloadlibtdevnc-6f9a9160c4006aecfc8ca5248e7e4bf8154aff62.tar.gz
libtdevnc-6f9a9160c4006aecfc8ca5248e7e4bf8154aff62.zip
Fix some compiler warnings thrown with newer gcc.
Diffstat (limited to 'test')
-rw-r--r--test/tjbench.c3
1 files changed, 2 insertions, 1 deletions
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())