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:
(void)call_pv("use no 'undefined';", 1);
// do some stuff with undefined values
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...