My program produces this message, and I'm trying to understand why.
The first step is to find out which scalar it is complaining about. I
haven't been able to do this. I can use the C debugger to step into
my XS code, and everything looks OK; I've used Devel::Peek on the
variables I suspect, and they look OK. Finally I tried placing a C
breakpoint on the line that actually prints the 'unreferenced scalar'
message in sv.c, and to my dismay the message appeared and the
debugger never stopped at the breakpoint!
Does anyone have any suggestions about how to track this down?