Re: [HACKERS] use strict in all Perl programs

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [HACKERS] use strict in all Perl programs
Дата
Msg-id CAB7nPqTBwGNhc0guJtSS+rurj8UNaO6=Be+JCD2EvgJV+riS=w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] use strict in all Perl programs  (David Steele <david@pgmasters.net>)
Список pgsql-hackers
On Fri, Jan 6, 2017 at 11:13 PM, David Steele <david@pgmasters.net> wrote:
> With regard to warnings, I prefer to use:
>
> use warnings FATAL => qw(all);
>
> This transforms all warnings into errors rather than just printing a message
> to stderr, which is very easy to miss among the other output.

Interesting. A couple of warnings have slipped a couple of times in
some TAP tests like those of pg_rewind, so it could be useful to
switch to that at least for the tests by detault.
-- 
Michael



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

Предыдущее
От: David Steele
Дата:
Сообщение: Re: [HACKERS] use strict in all Perl programs
Следующее
От: David Steele
Дата:
Сообщение: Re: [HACKERS] Support for pg_receivexlog --format=plain|tar