This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
stop unused-var warnings in ExtUtils-ParseXS tests
authorZefram <zefram@fysh.org>
Tue, 14 Nov 2017 08:49:16 +0000 (08:49 +0000)
committerZefram <zefram@fysh.org>
Tue, 14 Nov 2017 08:49:16 +0000 (08:49 +0000)
These are warnings resulting from unusual features of the specific XS
code in the test suite, not from XS compilation in general.

dist/ExtUtils-ParseXS/Changes
dist/ExtUtils-ParseXS/t/XSTest.xs
dist/ExtUtils-ParseXS/t/XSUsage.xs

index 7ffdb4e..f9fb36e 100644 (file)
@@ -3,6 +3,8 @@ Revision history for Perl extension ExtUtils::ParseXS.
 3.36
   - Make generated code avoid warnings about the "items" variable
     being unused
+  - Avoid some unused-variable warnings generated by XS code in the
+    test suite
 
 3.35 - Mon Jul 31 17:50:00 CET 2017
   - Fix ExtUtils-ParseXS/t/*.t that needed '.' in @INC (David Mitchell)
index 89df22f..452d3db 100644 (file)
@@ -76,6 +76,7 @@ bool
 T_BOOL_2(in)
         bool in
     CODE:
+       PERL_UNUSED_VAR(RETVAL);
     OUTPUT: in
 
 void
index 9a8d93d..ed3c8f8 100644 (file)
@@ -35,6 +35,8 @@ xsusage_two()
     ALIAS:
         two_x = 1
         FOO::two = 2
+    INIT:
+        PERL_UNUSED_VAR(ix);
 
 int
 interface_v_i()