Re: cleaning perl code

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cleaning perl code
Дата
Msg-id 27481.1586618092@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: cleaning perl code  (Noah Misch <noah@leadboat.com>)
Ответы Re: cleaning perl code
Re: cleaning perl code
Список pgsql-hackers
Noah Misch <noah@leadboat.com> writes:
> In summary, among those warnings, I see non-negative value in "Code before
> warnings are enabled" only.  While we're changing this, I propose removing
> Subroutines::RequireFinalReturn.

If it's possible to turn off just that warning, then +several.
It's routinely caused buildfarm failures, yet I can detect exactly
no value in it.  If there were sufficient cross-procedural analysis
backing it to detect whether any caller examines the subroutine's
result value, then it'd be worth having.  But there isn't, so those
extra returns are just pedantic verbosity.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: relcache leak warnings vs. errors
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: cleaning perl code