Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Silencing warnings inside C/XS (no no)by tye (Sage) |
on Oct 08, 2012 at 13:45 UTC ( [id://997820]=note: print w/replies, xml ) | Need Help?? |
I doubt that would make it have any impact. "no warnings ..." impacts lexical scope which is likely restricted to the call_pv() call. But even if call_pv() doesn't define (and destroy) a new lexical scope, I still doubt it would have any impact. "no warnings ..." works by tagging the Perl op-codes that are generated. XS code isn't running Perl op-codes, especially not ones compiled after the call to call_pv(). My main advice is to stop messing with Perl data structures in XS code. This is just one of the problems that result from such. The others tend to be worse. - tye
In Section
Seekers of Perl Wisdom
|
|