1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-10 09:21:54 +03:00

PL/Perl: Avoid compiler warning from clang

Use SvREFCNT_inc_simple_void() instead of SvREFCNT_inc() to avoid
warning about unused return value.
This commit is contained in:
Alvaro Herrera 2012-07-10 15:49:48 -04:00
parent 62b9045666
commit 1fbe7d377c

View 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);