mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
avoid compiler warning by declaring variable at start of block
This commit is contained in:
parent
b88e69dceb
commit
c2fb3a0954
1 changed files with 2 additions and 1 deletions
|
@ -692,8 +692,9 @@ MSTACK
|
|||
- (void) lock\
|
||||
{ \
|
||||
NSThread *t = GSCurrentThread(); \
|
||||
int err; \
|
||||
CHKT(t,Wait) \
|
||||
int err = pthread_mutex_lock(&_mutex);\
|
||||
err = pthread_mutex_lock(&_mutex);\
|
||||
if (EDEADLK == err)\
|
||||
{\
|
||||
CHKT(t,Drop) \
|
||||
|
|
Loading…
Reference in a new issue