Inside XS calls, things like calling methods with undefined values causes very loud (and usually instructive) warnings. It's not uncommon, though, for Perl APIs to have undef as a valid and useful argument - in such cases I don't want my call_method() to fill my error log with noise. I tried a naive approach of:
But it had no impact. Can anyone suggest how I should do this? I guess I could play with $^W but I'd rather not...ENTER; (void)call_pv("use no 'undefined';", 1); // do some stuff with undefined values LEAVE;
In reply to Silencing warnings inside C/XS by aufflick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |