in reply to Re^2: Silencing warnings inside C/XS (no no)
in thread Silencing warnings inside C/XS
My main advice is to stop messing with Perl data structures in XS code.
Sure, if you want to do it for all your functions you could probably use
no warnings 'uninitialized'; XSLoader::load();
Problem with that, its all-or-nothing, if you want to isolate a single sub , you have to set $^WARNING_BITS, because the alternative is this wrapper crap
sub notFun { no warnings 'uninitialized'; goto &_notFunXS; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Silencing warnings inside C/XS (wrapper)
by tye (Sage) on Oct 08, 2012 at 16:44 UTC |