From: Jarkko Hietaniemi Date: Wed, 18 Apr 2001 20:23:02 +0000 (+0000) Subject: Declare hints only if needed. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a89a1adb4d6740fe1401ef33d00ed42e1fc54901;p=p5sagit%2Fp5-mst-13.2.git Declare hints only if needed. p4raw-id: //depot/perl@9741 --- diff --git a/ext/B/B/Deparse.pm b/ext/B/B/Deparse.pm index 25db66a..7004975 100644 --- a/ext/B/B/Deparse.pm +++ b/ext/B/B/Deparse.pm @@ -995,7 +995,7 @@ sub declare_warnings { sub declare_hints { my ($from, $to) = @_; my $bits = $to; - return sprintf "BEGIN {\$^H &= ~0xFF; \$^H |= %x}\n", $bits; + return $bits ? (sprintf "BEGIN {\$^H &= ~0xFF; \$^H |= %x}\n", $bits) : ''; } sub pp_dbstate { pp_nextstate(@_) }