This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH 5.8.1] Unwanted "redefined" warnings in h2ph
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 10 Sep 2003 15:10:06 +0000 (15:10 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 10 Sep 2003 15:10:06 +0000 (15:10 +0000)
From: Kurt Starsinic <kstar@cpan.org>
Date: Tue, 9 Sep 2003 23:16:00 -0400
Message-ID: <20030910031600.GA30554@verizon.net>

Subject: Re: [PATCH 5.8.1] Unwanted "redefined" warnings in h2ph
From: "Brendan O'Dea" <bod@debian.org>
Date: Wed, 10 Sep 2003 22:03:15 +1000
Message-ID: <20030910120315.GA1372@londo.c47.org>

p4raw-id: //depot/perl@21159

t/lib/h2ph.pht
utils/h2ph.PL

index 8bc1636..e03cbb9 100644 (file)
@@ -1,5 +1,7 @@
 require '_h2ph_pre.ph';
 
+no warnings 'redefine';
+
 unless(defined(&SQUARE)) {
     sub SQUARE {
        local($x) = @_;
index 27a7bf6..eaa019a 100644 (file)
@@ -120,7 +120,9 @@ while (defined (my $file = next_file())) {
        open(OUT,">$Dest_dir/$outfile") || die "Can't create $outfile: $!\n";
     }
 
-    print OUT "require '_h2ph_pre.ph';\n\n";
+    print OUT
+        "require '_h2ph_pre.ph';\n\n",
+        "no warnings 'redefine';\n\n";
 
     while (defined (local $_ = next_line($file))) {
        if (s/^\s*\#\s*//) {