From: Alvaro Herrera Date: Tue, 10 Jul 2012 19:49:48 +0000 (-0400) Subject: PL/Perl: Avoid compiler warning from clang X-Git-Tag: REL9_1_5~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1fbe7d377cb6bf070442794a677499cd2e7531cc;p=thirdparty%2Fpostgresql.git PL/Perl: Avoid compiler warning from clang Use SvREFCNT_inc_simple_void() instead of SvREFCNT_inc() to avoid warning about unused return value. --- diff --git a/src/pl/plperl/plperl_helpers.h b/src/pl/plperl/plperl_helpers.h index 35e1257457f..d3bdc1b9808 100644 --- a/src/pl/plperl/plperl_helpers.h +++ b/src/pl/plperl/plperl_helpers.h @@ -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);