Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a8b92b6

Browse files
committed
PL/Perl: Avoid compiler warning from clang
Use SvREFCNT_inc_simple_void() instead of SvREFCNT_inc() to avoid warning about unused return value.
1 parent 4498a34 commit a8b92b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pl/plperl/plperl_helpers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ sv2cstr(SV *sv)
6464
else
6565
/* increase the reference count so we can just SvREFCNT_dec() it when
6666
* we are done */
67-
SvREFCNT_inc(sv);
67+
SvREFCNT_inc_simple_void(sv);
6868

6969
val = SvPVutf8(sv, len);
7070

0 commit comments

Comments
 (0)