From 05503232c07908deee8c357f5ec0ad8da6a96695 Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Wed, 28 Jul 2010 22:17:00 +0200 Subject: [PATCH] texi2pod.pl: use the warnings module only when it is available. --- doc/ChangeLog | 4 ++++ doc/texi2pod.pl | 1 + 2 files changed, 5 insertions(+) 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;