fix warning about unused variable

This commit is contained in:
Frank Meerkötter 2012-04-01 00:02:36 +02:00
parent 8d65d26893
commit dc3bbe1c23

View file

@ -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)