Re: log_heap_visible(): remove unused parameter and update comment

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: log_heap_visible(): remove unused parameter and update comment
Дата
Msg-id 1f72c735-c897-0ad6-b149-aaf5d1c4fcf0@enterprisedb.com
обсуждение исходный текст
Ответ на Re: log_heap_visible(): remove unused parameter and update comment  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On 04.10.22 09:19, Bharath Rupireddy wrote:
> We have the pg_attribute_unused() macro already. I'm not sure if
> adding -Wunused-parameter for compilation plus using
> pg_attribute_unused() for unused-yet-contextually-required variables
> is a great idea. But it has some merits as it avoids unused variables
> lying around in the code. However, we can even discuss this in a
> separate thread IMO to hear more from other hackers.

I tried this once.  The patch I have from a few years ago is

  420 files changed, 1482 insertions(+), 1482 deletions(-)

and it was a lot of work to maintain.

I can send it in if there is interest.  But I'm not sure if it's worth it.




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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: Fix some newly modified tab-complete changes
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: interrupted tap tests leave postgres instances around