From dc3bbe1c23308b0ef543a7f3c433522c16c87110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Meerk=C3=B6tter?= Date: Sun, 1 Apr 2012 00:02:36 +0200 Subject: [PATCH] fix warning about unused variable --- src/tvheadend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tvheadend.h b/src/tvheadend.h index c4c1d777..85f8395f 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)