From fcfc2536982bb48db2c6690dc9011ed4a091fefc Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Fri, 28 Jun 2013 18:31:26 -0700 Subject: [PATCH] op.c: Suppress compiler warning Sorry, commit 08aff5359 was not quite ready and I pushed it too soon. The purpose of the if block that it removed was to suppress a warn- ing about an unused variable, but it was a very strange way of accom- plishing that. We have a much simpler way that takes only one line and expresses its intent clearly. --- op.c | 1 + 1 file changed, 1 insertion(+) diff --git a/op.c b/op.c index daef81a..fc0306a 100644 --- a/op.c +++ b/op.c @@ -11980,6 +11980,7 @@ const_sv_xsub(pTHX_ CV* cv) dVAR; dXSARGS; SV *const sv = MUTABLE_SV(XSANY.any_ptr); + PERL_UNUSED_ARG(items); if (!sv) { XSRETURN(0); } -- 1.8.3.1