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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy