Re: Make all Perl warnings fatal
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Michael Paquier <michael@paquier.xyz>
Cc: Peter Eisentraut <peter@eisentraut.org>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-08-22T13:11:25Z
Lists: pgsql-hackers
On 2023-08-22 Tu 00:05, Michael Paquier wrote: > On Mon, Aug 21, 2023 at 11:51:24AM -0400, Andrew Dunstan wrote: >> It's not really the same as -Werror, because many warnings can be generated >> at runtime rather than compile-time. >> >> Still, I guess that might not matter too much since apart from plperl we >> only use perl for building / testing. > However, is it possible to trust the out-of-core perl modules posted > on CPAN, assuming that these will never produce warnings? I've never > seen any issues with IPC::Run in these last years, so perhaps that's > OK in the long-run. If we do find any such issues then warnings can be turned off locally. We already do that in several places. >> Regarding the dangers mentioned, I guess we can undo it if it proves a >> nuisance. > Yeah. I am wondering what the buildfarm would say with this change. > >> +1 to getting rid if the unnecessary call to getprotobyname(). > Looking around here.. > https://perldoc.perl.org/perlipc#Sockets%3A-Client%2FServer-Communication > > Hmm. Are you sure that this is OK even in the case where the TAP > tests run on Windows without unix-domain socket support? The CI runs > on Windows, but always with unix domain sockets around as far as I > know. The socket call in question is for a PF_INET socket, so this has nothing at all to do with unix domain sockets. See the man page for socket() (2) for an explanation of why 0 is ok in this case. (There's only one protocol that matches the rest of the parameters). cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com
Commits
-
Add missing FATAL => 'all' to a use warnings in Perl
- 014720c6d9fb 18.0 landed
-
Make all Perl warnings fatal in 043_wal_replay_wait.pl
- e1555645d729 18.0 landed
-
Add tap test for pg_signal_autovacuum role
- d2b74882cab8 18.0 cited
-
Implement pg_wal_replay_wait() stored procedure
- 06c418e163e9 17.0 cited
-
Fix an issue in PostgreSQL::Test::Cluster:psql()
- 686db12de3a0 17.0 landed
-
Make all Perl warnings fatal
- c5385929593d 17.0 landed
-
Fix a warning in Perl test code
- a7ebd82b9e50 17.0 landed
-
Avoid use of Perl getprotobyname
- 01226c682ce6 17.0 landed