From: Vincent Pit Date: Tue, 26 Feb 2013 00:03:19 +0000 (-0300) Subject: Silence an "unused result" compiler warning X-Git-Tag: rt83450~1 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=122a05bdb9134d5f644ac55e2db7e9479f9f2d0e;p=perl%2Fmodules%2Findirect.git Silence an "unused result" compiler warning --- diff --git a/indirect.xs b/indirect.xs index 4f7ac3a..f36c179 100644 --- a/indirect.xs +++ b/indirect.xs @@ -35,8 +35,12 @@ # define SvPVX_const SvPVX #endif -#ifndef SvREFCNT_inc_simple_NN -# define SvREFCNT_inc_simple_NN SvREFCNT_inc +#ifndef SvREFCNT_inc_simple_void_NN +# ifdef SvREFCNT_inc_simple_NN +# define SvREFCNT_inc_simple_void_NN SvREFCNT_inc_simple_NN +# else +# define SvREFCNT_inc_simple_void_NN SvREFCNT_inc +# endif #endif #ifndef sv_catpvn_nomg @@ -338,7 +342,7 @@ STATIC SV *indirect_tag(pTHX_ SV *value) { value = SvRV(value); if (SvTYPE(value) >= SVt_PVCV) { code = value; - SvREFCNT_inc_simple_NN(code); + SvREFCNT_inc_simple_void_NN(code); } }