]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
PL/Perl: Avoid compiler warning from clang
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 10 Jul 2012 19:49:48 +0000 (15:49 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 10 Jul 2012 19:49:48 +0000 (15:49 -0400)
Use SvREFCNT_inc_simple_void() instead of SvREFCNT_inc() to avoid
warning about unused return value.

src/pl/plperl/plperl_helpers.h

index 35e1257457ff2d6ea57015ab42a273461e9862cf..d3bdc1b9808ac9a356e9263834d68e61037a30d2 100644 (file)
@@ -64,7 +64,7 @@ sv2cstr(SV *sv)
        else
                /* increase the reference count so we cant just SvREFCNT_dec() it when
                 * we are done */
-               SvREFCNT_inc(sv);
+               SvREFCNT_inc_simple_void(sv);
 
        val = SvPVutf8(sv, len);