Content-Length: 255878 | pFad | http://github.com/postgrespro/postgres/commit/a8b92b6090f14a3a84d2b904eff1794e21047fae

3C PL/Perl: Avoid compiler warning from clang · postgrespro/postgres@a8b92b6 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/a8b92b6090f14a3a84d2b904eff1794e21047fae

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy