develooper Front page | perl.perl5.porters | Postings from November 2013

warnings in XS::APItest

Thread Next
Dave Mitchell
November 21, 2013 17:24
warnings in XS::APItest
Message ID:
Zefram, FC,

there are couple of bits of code in APItest.xs contributed by you two
that are generating compiler warnings, where I'm not sure of the intent.

The first (FC) is:

APItest.xs: In function ‘filter_call’:
APItest.xs:1052:9: warning: unused variable ‘my_sv’ [-Wunused-variable]

The line is

    SV   *my_sv = FILTER_DATA(idx);

I don't know whether the line can be deleted or whether something should
be done with my_sv.

The second (zefram):

APItest.c: In function ‘XS_XS__APItest_test_rv2cv_op_cv’:
APItest.xs:2549:16: warning: variable ‘wibble_gv’ set but not used [-Wunused-but-set-variable]

where the line is

    wibble_gv = gv_fetchpv("XS::APItest::wibble", 0, SVt_PVGV);


I thought I was wrong once, but I was mistaken.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About