You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/05/10 20:54:27 UTC
[lucy-commits] git commit: refs/heads/master - Avoid some compiler warnings
Updated Branches:
refs/heads/master 8feab195e -> 1152f4e8d
Avoid some compiler warnings
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/1152f4e8
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/1152f4e8
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/1152f4e8
Branch: refs/heads/master
Commit: 1152f4e8d19a363f61568551dcd515387b0f2f56
Parents: 8feab19
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Fri May 10 20:51:04 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Fri May 10 20:53:29 2013 +0200
----------------------------------------------------------------------
perl/buildlib/Lucy/Build/Binding/Store.pm | 4 ++--
perl/xs/Lucy/Analysis/RegexTokenizer.c | 2 +-
perl/xs/Lucy/Document/Doc.c | 4 ++--
perl/xs/XSBind.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/1152f4e8/perl/buildlib/Lucy/Build/Binding/Store.pm
----------------------------------------------------------------------
diff --git a/perl/buildlib/Lucy/Build/Binding/Store.pm b/perl/buildlib/Lucy/Build/Binding/Store.pm
index 1fbdba7..fbec036 100644
--- a/perl/buildlib/Lucy/Build/Binding/Store.pm
+++ b/perl/buildlib/Lucy/Build/Binding/Store.pm
@@ -161,7 +161,7 @@ PPCODE:
UV offset = items == 4 ? SvUV(ST(3)) : 0;
char *ptr;
size_t total_len = offset + len;
- SvUPGRADE(buffer_sv, SVt_PV);
+ (void)SvUPGRADE(buffer_sv, SVt_PV);
if (!SvPOK(buffer_sv)) { SvCUR_set(buffer_sv, 0); }
ptr = SvGROW(buffer_sv, total_len + 1);
Lucy_InStream_Read_Bytes(self, ptr + offset, len);
@@ -196,7 +196,7 @@ read_raw_c64(self, buffer_sv)
CODE:
{
char *ptr;
- SvUPGRADE(buffer_sv, SVt_PV);
+ (void)SvUPGRADE(buffer_sv, SVt_PV);
ptr = SvGROW(buffer_sv, 10 + 1);
RETVAL = Lucy_InStream_Read_Raw_C64(self, ptr);
SvPOK_on(buffer_sv);
http://git-wip-us.apache.org/repos/asf/lucy/blob/1152f4e8/perl/xs/Lucy/Analysis/RegexTokenizer.c
----------------------------------------------------------------------
diff --git a/perl/xs/Lucy/Analysis/RegexTokenizer.c b/perl/xs/Lucy/Analysis/RegexTokenizer.c
index aba7b80..e386cf6 100644
--- a/perl/xs/Lucy/Analysis/RegexTokenizer.c
+++ b/perl/xs/Lucy/Analysis/RegexTokenizer.c
@@ -77,7 +77,7 @@ S_compile_token_re(const cfish_CharBuf *pattern) {
call_pv("Lucy::Analysis::RegexTokenizer::_compile_token_re", G_SCALAR);
SPAGAIN;
SV *token_re_sv = POPs;
- SvREFCNT_inc(token_re_sv);
+ (void)SvREFCNT_inc(token_re_sv);
PUTBACK;
FREETMPS;
LEAVE;
http://git-wip-us.apache.org/repos/asf/lucy/blob/1152f4e8/perl/xs/Lucy/Document/Doc.c
----------------------------------------------------------------------
diff --git a/perl/xs/Lucy/Document/Doc.c b/perl/xs/Lucy/Document/Doc.c
index 552432d..0f0de76 100644
--- a/perl/xs/Lucy/Document/Doc.c
+++ b/perl/xs/Lucy/Document/Doc.c
@@ -75,7 +75,7 @@ S_nfreeze_fields(lucy_Doc *self) {
call_pv("Storable::nfreeze", G_SCALAR);
SPAGAIN;
SV *frozen = POPs;
- SvREFCNT_inc(frozen);
+ (void)SvREFCNT_inc(frozen);
PUTBACK;
FREETMPS;
LEAVE;
@@ -118,7 +118,7 @@ S_thaw_fields(lucy_InStream *instream) {
CFISH_THROW(CFISH_ERR, "thaw failed");
}
HV *fields = (HV*)SvRV(frozen);
- SvREFCNT_inc((SV*)fields);
+ (void)SvREFCNT_inc((SV*)fields);
PUTBACK;
FREETMPS;
LEAVE;
http://git-wip-us.apache.org/repos/asf/lucy/blob/1152f4e8/perl/xs/XSBind.c
----------------------------------------------------------------------
diff --git a/perl/xs/XSBind.c b/perl/xs/XSBind.c
index b4b6d6c..3261069 100644
--- a/perl/xs/XSBind.c
+++ b/perl/xs/XSBind.c
@@ -600,7 +600,7 @@ S_lazy_init_host_obj(lucy_Obj *self) {
#if (PERL_VERSION <= 16)
PL_sv_objcount++;
#endif
- SvUPGRADE(inner_obj, SVt_PVMG);
+ (void)SvUPGRADE(inner_obj, SVt_PVMG);
sv_setiv(inner_obj, PTR2IV(self));
// Connect class association.