Skip to content

Commit

Permalink
Merge pull request #22 from tomhukins/silence_test_warning
Browse files Browse the repository at this point in the history
Silence a warning properly
  • Loading branch information
leonerd committed Mar 9, 2015
2 parents 57f6365 + fdecddb commit 935183d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/refaddr.t
Expand Up @@ -21,7 +21,7 @@ my $t;
foreach my $r ({}, \$t, [], \*F, sub {}) {
my $n = "$r";
$n =~ /0x(\w+)/;
my $addr = do { local $^W; hex $1 };
my $addr = do { no warnings; hex $1 };
my $before = ref($r);
is( refaddr($r), $addr, $n);
is( ref($r), $before, $n);
Expand Down

0 comments on commit 935183d

Please sign in to comment.