Re-apply EU::ParseXS portion of c33e8be1506a75e
authorSteffen Mueller <smueller@cpan.org>
Thu, 10 Feb 2011 09:20:11 +0000 (10:20 +0100)
committerSteffen Mueller <smueller@cpan.org>
Tue, 12 Jul 2011 18:53:56 +0000 (20:53 +0200)
This is the unused-arg stuff in tests.
Originally reverted as 836ae07757f3a1a32212.

dist/ExtUtils-ParseXS/t/XSMore.xs
dist/ExtUtils-ParseXS/t/XSUsage.xs

index f2fe902..0777f89 100644 (file)
@@ -16,6 +16,7 @@ outlist(int* a, int* b){
 
 STATIC int
 len(const char* const s, int const l){
+       PERL_UNUSED_ARG(s);
        return l;
 }
 
@@ -84,6 +85,7 @@ int
 myabs(...)
 OVERLOAD: abs
 CODE:
+       PERL_UNUSED_VAR(items);
        RETVAL = 42;
 OUTPUT:
        RETVAL
index ec663f8..1e59635 100644 (file)
@@ -6,8 +6,8 @@ int xsusage_one()       { return 1; }
 int xsusage_two()       { return 2; }
 int xsusage_three()     { return 3; }
 int xsusage_four()      { return 4; }
-int xsusage_five(int i) { return 5; }
-int xsusage_six(int i)  { return 6; }
+int xsusage_five(int i) { PERL_UNUSED_ARG(i); return 5; }
+int xsusage_six(int i)  { PERL_UNUSED_ARG(i); return 6; }
 
 MODULE = XSUsage         PACKAGE = XSUsage     PREFIX = xsusage_