Skip to content

Commit

Permalink
[pmc2c] There's a signal handler in pmc2c which upgrades warnings to …
Browse files Browse the repository at this point in the history
…errors (with a Carp backtrace).

This looks like a useful debugging tool, but when combined with the deprecation warning I introduced
in r38932, it causes test failures.  Add a comment and disable it for now.

git-svn-id: https://svn.parrot.org/parrot/trunk@38940 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
Infinoid committed May 19, 2009
1 parent 4198b98 commit 4ebf445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Parrot/Pmc2c/Pmc2cMain.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ use Parrot::Pmc2c::PMC::Object ();
# Parrot::Pmc2c::Emitter.
our $OPTIONS;

$SIG{'__WARN__'} = sub { use Carp; warn $_[0]; Carp::confess; };
# This is useful for debugging, but upgrades deprecation warnings to errors.
#$SIG{'__WARN__'} = sub { use Carp; warn $_[0]; Carp::confess; };

=head1 NAME
Expand Down

0 comments on commit 4ebf445

Please sign in to comment.