Silence a GCC warning
Steve Hay [Mon, 27 Feb 2006 17:48:55 +0000 (17:48 +0000)]
(assignment from incompatible pointer type)

p4raw-id: //depot/perl@27348

sv.h

diff --git a/sv.h b/sv.h
index fc49f23..50f11e0 100644 (file)
--- a/sv.h
+++ b/sv.h
@@ -214,7 +214,7 @@ perform the upgrade if necessary.  See C<svtype>.
     ({                                 \
        if (sv)                         \
             (SvREFCNT(sv))++;          \
-       sv;                             \
+       (SV *)(sv);                             \
     })
 #  define SvREFCNT_inc_NN(sv)          \
     ({                                 \