diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-04-06 17:49:05 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-04-06 17:49:05 +0300 |
commit | 4e852c163e5898db9716d5e35024fd0af72ed6d3 (patch) | |
tree | ce852d3a4708b2c66151bacb06bd5f3b6a91ee3e | |
parent | 3f33d0d3f0cdb8cf98a55806d181434e16420439 (diff) | |
download | makeredirect-4e852c163e5898db9716d5e35024fd0af72ed6d3.tar.gz makeredirect-4e852c163e5898db9716d5e35024fd0af72ed6d3.tar.bz2 |
Avoid unnecessary warnings from faulty/incomplete modules when producing help output.
* lib/MakeRedirect/Output/help.pm (module_list): Suppress warnings
during eval.
-rw-r--r-- | lib/MakeRedirect/Output/help.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MakeRedirect/Output/help.pm b/lib/MakeRedirect/Output/help.pm index 0606bb9..ceec309 100644 --- a/lib/MakeRedirect/Output/help.pm +++ b/lib/MakeRedirect/Output/help.pm @@ -69,6 +69,7 @@ sub module_list { if (exists($INC{$filename})) { () } else { + local $SIG{__WARN__} = sub {}; eval { require $filename; }; |