[FFmpeg-cvslog] doc/texi2pod: add "use warnings" directive

Stefano Sabatini git at videolan.org
Wed Aug 28 01:42:01 CEST 2013


ffmpeg | branch: release/0.11 | Stefano Sabatini <stefasab at gmail.com> | Sun Aug 12 10:35:03 2012 +0200| [e8cae38be6be5c5b258b0fd97d83e30915103685] | committer: Timothy Gu

doc/texi2pod: add "use warnings" directive

The script was previously run with perl -w through the shebang
command. Now that the script is executed through direct perl invocation
the -w in the shebang command is ignored. This patch re-enables "use
warnings" whatever way the script is invoked.

Idea-By: jamal <jamrial at gmail.com>
(cherry picked from commit 3239382aefd0f5fa9ffd1509ccaedd59a54ec9af)

Signed-off-by: Timothy Gu <timothygu99 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e8cae38be6be5c5b258b0fd97d83e30915103685
---

 doc/texi2pod.pl |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 94323be..5e8814f 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#! /usr/bin/perl
 
 #   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 
@@ -23,6 +23,8 @@
 # markup to Perl POD format.  It's intended to be used to extract
 # something suitable for a manpage from a Texinfo document.
 
+use warnings;
+
 $output = 0;
 $skipping = 0;
 %sects = ();



More information about the ffmpeg-cvslog mailing list