Skip to content
Snippets Groups Projects
Commit a8b92b60 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

PL/Perl: Avoid compiler warning from clang

Use SvREFCNT_inc_simple_void() instead of SvREFCNT_inc() to avoid
warning about unused return value.
parent 4498a340
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment