From: Tom Hughes Date: Tue, 2 Nov 2004 09:45:21 +0000 (+0000) Subject: Use -w instead of "use warnings" to enable warnings so that older X-Git-Tag: svn/VALGRIND_3_0_0~1405 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a54180bc296e83cb86f7375c4b174755c5243ad8;p=thirdparty%2Fvalgrind.git Use -w instead of "use warnings" to enable warnings so that older versions of perl can handle the script. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2903 --- 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 edd716de9a..95f93c1bf8 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 = "";