]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Silence an "unused result" compiler warning
authorVincent Pit <vince@profvince.com>
Tue, 26 Feb 2013 00:03:19 +0000 (21:03 -0300)
committerVincent Pit <vince@profvince.com>
Tue, 26 Feb 2013 00:03:19 +0000 (21:03 -0300)
indirect.xs

index 4f7ac3a9721c19e5abd772d107920c3eb52fa419..f36c179e8537e024c75b414f90bb1e4d1eeefc2f 100644 (file)
 # 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);
   }
  }