mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-13 19:57:53 +08: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:
parent
4498a3407a
commit
a8b92b6090
@ -64,7 +64,7 @@ sv2cstr(SV *sv)
|
||||
else
|
||||
/* increase the reference count so we can just SvREFCNT_dec() it when
|
||||
* we are done */
|
||||
SvREFCNT_inc(sv);
|
||||
SvREFCNT_inc_simple_void(sv);
|
||||
|
||||
val = SvPVutf8(sv, len);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user