]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
treewide: enable warnings in all exec-ed processes
authorEric Wong <e@80x24.org>
Sun, 1 Oct 2023 09:54:27 +0000 (09:54 +0000)
committerEric Wong <e@80x24.org>
Sun, 1 Oct 2023 22:41:48 +0000 (22:41 +0000)
commitb231d91f42d791becf7b6861e723833d71e73237
tree02e4efac6c8af7b1735f5e75cb0c7209c57e998d
parent3b8315e371c322ff59b31b36b14d9b7568e708fe
treewide: enable warnings in all exec-ed processes

While forked processes inherit from the parent, exec-ed
processes need the `-w' flag passed to them.  To determine
whether or not we should pass them, we must check the `$^W'
global perlvar, first.

We'll also favor `perl -e' over `perl -E' in places where
we don't rely on the latest features, since `-E' incurs
slightly more startup time overhead from loading feature.pm
(while `perl -Mv5.12' does not).
lib/PublicInbox/Gcf2Client.pm
lib/PublicInbox/LeiRediff.pm
script/lei
t/edit.t
t/extsearch.t
t/lei-q-save.t
t/mbox_reader.t
t/spawn.t