]> sjero.net Git - wget/commitdiff
texi2pod.pl: use the warnings module only when it is available.
authorAlon Bar-Lev <alon.barlev@gmail.com>
Wed, 28 Jul 2010 20:17:00 +0000 (22:17 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 28 Jul 2010 20:17:00 +0000 (22:17 +0200)
doc/ChangeLog
doc/texi2pod.pl

index f04334d6ba3c56312d370ac5df746e6ce18f930f..d259a5d7fcb5b157531ab0aaa5e9ea5763cc522e 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-28  Alon Bar-Lev <alon.barlev@gmail.com> (tiny change)
+
+       * texi2pod.pl: Use the warnings module only when it is available.
+
 2010-05-27  Giuseppe Scrivano  <gscrivano@gnu.org>
 
        * wget.texi (Download Options): Document that -k can be used with -O
index 2b743cfb3efffaab3f2164b42561eb286227e059..57a8ac8fa1894fb4d7bcb15b1969b19e2a325985 100755 (executable)
@@ -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;