From: Alon Bar-Lev Date: Wed, 28 Jul 2010 20:17:00 +0000 (+0200) Subject: texi2pod.pl: use the warnings module only when it is available. X-Git-Tag: v1.13~116 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=05503232c07908deee8c357f5ec0ad8da6a96695 texi2pod.pl: use the warnings module only when it is available. --- diff --git a/doc/ChangeLog b/doc/ChangeLog index f04334d6..d259a5d7 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2010-07-28 Alon Bar-Lev (tiny change) + + * texi2pod.pl: Use the warnings module only when it is available. + 2010-05-27 Giuseppe Scrivano * wget.texi (Download Options): Document that -k can be used with -O diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl index 2b743cfb..57a8ac8f 100755 --- a/doc/texi2pod.pl +++ b/doc/texi2pod.pl @@ -23,6 +23,7 @@ # something suitable for a manpage from a Texinfo document. use warnings; +BEGIN { eval { require warnings; } and warnings->import; } $output = 0; $skipping = 0;