Re: [PATCH] Identify LWLocks in tracepoints

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [PATCH] Identify LWLocks in tracepoints
Дата
Msg-id 4a0ca956-f2eb-ee72-4639-eca3b48f1f49@enterprisedb.com
обсуждение исходный текст
Ответ на Re: [PATCH] Identify LWLocks in tracepoints  (Andres Freund <andres@anarazel.de>)
Ответы Re: [PATCH] Identify LWLocks in tracepoints  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 05.05.21 00:15, Andres Freund wrote:
> I'm now getting
> 
> /home/andres/src/postgresql/src/backend/storage/lmgr/lwlock.c: In function ‘LWLockAcquire’:
> /home/andres/src/postgresql/src/backend/storage/lmgr/lwlock.c:1322:58: warning: suggest braces around empty body in
an‘if’ statement [-Wempty-body]
 
>   1322 |    TRACE_POSTGRESQL_LWLOCK_WAIT_START(T_NAME(lock), mode);
>        |                                                          ^

For clarification, -Wempty-body is not part of the default warnings, right?

And even if I turn it on explicitly, I don't get this warning.  I read 
something that newer compilers don't warn in cases of macro expansion.

What compiler are you using in this situation?




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dilip Kumar
Дата:
Сообщение: Re: Small issues with CREATE TABLE COMPRESSION
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: plan with result cache is very slow when work_mem is not enough