summaryrefslogtreecommitdiffstats
path: root/common/turbojpeg.c
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 /common/turbojpeg.c
parent413ca0dfef83b98f7b230e0596ac086d42eaad4e (diff)
downloadlibtdevnc-6f9a9160c4006aecfc8ca5248e7e4bf8154aff62.tar.gz
libtdevnc-6f9a9160c4006aecfc8ca5248e7e4bf8154aff62.zip
Fix some compiler warnings thrown with newer gcc.
Diffstat (limited to 'common/turbojpeg.c')
-rw-r--r--common/turbojpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/turbojpeg.c b/common/turbojpeg.c
index b3877ec..f7b9245 100644
--- a/common/turbojpeg.c
+++ b/common/turbojpeg.c
@@ -108,6 +108,7 @@ static const tjscalingfactor sf[NUMSF]={
retval=-1; goto bailout;}
#define getinstance(handle) tjinstance *this=(tjinstance *)handle; \
j_compress_ptr cinfo=NULL; j_decompress_ptr dinfo=NULL; \
+ (void) cinfo; (void) dinfo; /* silence warnings */ \
if(!this) {snprintf(errStr, JMSG_LENGTH_MAX, "Invalid handle"); \
return -1;} \
cinfo=&this->cinfo; dinfo=&this->dinfo;