geoffleach has asked for the wisdom of the Perl Monks concerning the following question:

O Monks! Forgive what must surely be a trivial question, but this warning is bugging me.
./xs/mpcfile.xs: In function ‘void XS_Audio__TagLib__MPC__File_remove( +PerlInterpreter*, CV*)’: ./xs/mpcfile.xs:94:14: warning: ‘tags’ may be used uninitialized in th +is function [-Wmaybe-uninitialized] THIS->remove(tags);

Which apparently comes from this XS sub </ps>

void TagLib::MPC::File::remove(tags=TagLib::MPC::File::AllTags) TagLib::MPC::File::TagTypes tags CODE: THIS->remove(tags); XSRETURN_UNDEF;
What am I missing?

Replies are listed 'Best First'.
Re: Uninitialized warning seems out of place
by Anonymous Monk on Jul 18, 2016 at 23:17 UTC
      The very solution! Thanks.