[svn:parrot] r38940 - trunk/lib/Parrot/Pmc2c
Infinoid at svn.parrot.org
Infinoid at svn.parrot.org
Tue May 19 15:21:44 UTC 2009
Author: Infinoid
Date: Tue May 19 15:21:44 2009
New Revision: 38940
URL: https://trac.parrot.org/parrot/changeset/38940
Log:
[pmc2c] There's a signal handler in pmc2c which upgrades warnings to 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.
Modified:
trunk/lib/Parrot/Pmc2c/Pmc2cMain.pm
Modified: trunk/lib/Parrot/Pmc2c/Pmc2cMain.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/Pmc2cMain.pm Tue May 19 15:13:59 2009 (r38939)
+++ trunk/lib/Parrot/Pmc2c/Pmc2cMain.pm Tue May 19 15:21:44 2009 (r38940)
@@ -24,7 +24,8 @@
# 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
More information about the parrot-commits
mailing list