Subject: | Unused but needed |
Patch attached. I tried removing the variables but then t/pair.t fails. Magic.
(trying to compile core exts with -Wall -Wextra)
Subject: | 0001-Unused-but-needed-variables.patch |
From 4bc94bef51ab17107221d6e0a657b0706be41a0c Mon Sep 17 00:00:00 2001
From: Jarkko Hietaniemi <jhi@iki.fi>
Date: Fri, 5 Dec 2014 21:46:10 -0500
Subject: [PATCH 1/2] Unused but needed variables.
---
cpan/Scalar-List-Utils/ListUtil.xs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/cpan/Scalar-List-Utils/ListUtil.xs b/cpan/Scalar-List-Utils/ListUtil.xs
index 515677f..f412d05 100644
--- a/cpan/Scalar-List-Utils/ListUtil.xs
+++ b/cpan/Scalar-List-Utils/ListUtil.xs
@@ -691,6 +691,10 @@ PPCODE:
&PL_sv_undef;
int count;
+ /* These are unused but needed for their side effects. */
+ PERL_UNUSED_VAR(a);
+ PERL_UNUSED_VAR(b);
+
MULTICALL;
count = PL_stack_sp - PL_stack_base;
@@ -734,6 +738,10 @@ PPCODE:
int count;
int i;
+ /* These are unused but needed for their side effects. */
+ PERL_UNUSED_VAR(a);
+ PERL_UNUSED_VAR(b);
+
PUSHMARK(SP);
count = call_sv((SV*)cv, G_ARRAY);
--
2.1.2