fix warning about unused variable
This commit is contained in:
parent
8d65d26893
commit
dc3bbe1c23
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue