Re: [HACKERS] [PATCH] warning: suggest braces around empty body in an 'else' statement

2013-11-07 Thread Tom Lane
Andres Freund writes: > Compiling postgres I currently get the following warning when compiling > without LOCK_DEBUG: > /home/andres/src/postgresql/src/backend/storage/lmgr/lock.c:944:52: > warning: suggest braces around empty body in an 'else' statement > [-Wempty-body] > PROCLOCK_PRINT("Lo

[HACKERS] [PATCH] warning: suggest braces around empty body in an 'else' statement

2013-11-07 Thread Andres Freund
Hi, Compiling postgres I currently get the following warning when compiling without LOCK_DEBUG: /home/andres/src/postgresql/src/backend/storage/lmgr/lock.c:944:52: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] PROCLOCK_PRINT("LockAcquire: NOWAIT", proclock);