New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc warning: unused variable 'ix' #140
Comments
I see this is coming from the for example in decode, the alias is just there as an alternate to decode and do not alter the code SV *
decode(encoding, octets, check = NULL)
SV * encoding
SV * octets
SV * check
ALIAS:
bytes2str = 0 Looks like we cannot define XS alias without having dXSI32 loaded... closing this case as there is nothing we can do there |
so looks like something for xsubpp... you can report issue to it. |
going to report it, this is a convenient feature more than anything else |
Fix issue Perl/perl5#17536 and dankogai#146 and dankogai#140 and dankogai#143 Aliasing exposes the 'ix' variable. Since the code does not change behavior based on the alias (which is what aliases are for) the functions do not access the 'ix' variable, which throws warnings. Since Encode is core they need to be fixed. The correct solution to this is to declare the ix variable unused by using the PERL_UNUSED_VAR(ix); macro, which this patch does.
Fix issue Perl/perl5#17536 and dankogai#146 and dankogai#140 and dankogai#143 Aliasing exposes the 'ix' variable. Since the code does not change behavior based on the alias (which is what aliases are for) the functions do not access the 'ix' variable, which throws warnings. Since Encode is core they need to be fixed. The correct solution to this is to declare the ix variable unused by using the PERL_UNUSED_VAR(ix); macro, which this patch does.
notice these warnings from this build log http://perl.develop-help.com/raw/?id=223899
this is coming from
dXSI32
for example in
XS_EUPXS
I'm not even sure it's requiredThe text was updated successfully, but these errors were encountered: