From: Tom Hughes Date: Tue, 2 Nov 2004 09:45:19 +0000 (+0000) Subject: Use -w instead of "use warnings" to enable warnings so that older X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fde468e6d028a674381f80122ec39b532869b938;p=thirdparty%2Fvalgrind.git Use -w instead of "use warnings" to enable warnings so that older versions of perl can handle the script. MERGE TO STABLE git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@2902 --- diff --git a/coregrind/gen_intercepts.pl b/coregrind/gen_intercepts.pl index ef23d4e59a..d522908fa6 100644 --- a/coregrind/gen_intercepts.pl +++ b/coregrind/gen_intercepts.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/perl -w # This file is part of Valgrind, an extensible x86 protected-mode # emulator for monitoring program execution on x86-Unixes. @@ -24,7 +24,6 @@ # The GNU General Public License is contained in the file COPYING. use strict; -use warnings; while(<>) { if(/VG_INTERCEPT\s*\(\s*(.*?)\s*,\s*(.*?)\s*\)/) { diff --git a/coregrind/gen_toolint.pl b/coregrind/gen_toolint.pl index 674d16d215..1600207160 100644 --- a/coregrind/gen_toolint.pl +++ b/coregrind/gen_toolint.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/perl -w # This file is part of Valgrind, an extensible x86 protected-mode # emulator for monitoring program execution on x86-Unixes. @@ -24,7 +24,6 @@ # The GNU General Public License is contained in the file COPYING. use strict; -use warnings; my $output = shift @ARGV; my $indent = "";