From: Frank Meerkötter Date: Sat, 31 Mar 2012 22:02:36 +0000 (+0200) Subject: fix warning about unused variable X-Git-Tag: 2.99~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc3bbe1c23308b0ef543a7f3c433522c16c87110;p=thirdparty%2Ftvheadend.git fix warning about unused variable --- diff --git a/src/tvheadend.h b/src/tvheadend.h index c4c1d777e..85f8395f9 100644 --- a/src/tvheadend.h +++ b/src/tvheadend.h @@ -400,7 +400,7 @@ extern void scopedunlock(pthread_mutex_t **mtxp); #define scopedlock(mtx) \ pthread_mutex_t *scopedlock ## __LINE__ \ __attribute__((cleanup(scopedunlock))) = mtx; \ - pthread_mutex_lock(mtx); + pthread_mutex_lock(scopedlock ## __LINE__); #define scopedgloballock() scopedlock(&global_lock)