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

warnings in XS::APItest

Thread Next
From:
Dave Mitchell
Date:
November 21, 2013 17:24
Subject:
warnings in XS::APItest
Message ID:
20131121172429.GP10295@iabyn.com
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);

ditto.

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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About