summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-03-26 16:55:46 +0000
committerDavid Mitchell <davem@iabyn.com>2011-03-26 16:55:46 +0000
commitcd7333372204bf77c4d9e8aa00dd7dfed401bf39 (patch)
tree4a0e47dc329445d00b51bc28c1aebb425c15de34 /regexec.c
parentd8ebba9f954afa65d5f5146e783285f4d4e24583 (diff)
downloadperl-cd7333372204bf77c4d9e8aa00dd7dfed401bf39.tar.gz
regexec.c: fix some compiler warnings
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 2d49c84dc7..a6de6a8643 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2555,7 +2555,7 @@ S_regtry(pTHX_ regmatch_info *reginfo, char **startpos)
/* This is safe against NULLs: */
ReREFCNT_dec(PM_GETRE(PL_reg_curpm));
/* PM_reg_curpm owns a reference to this regexp. */
- ReREFCNT_inc(rx);
+ (void)ReREFCNT_inc(rx);
#endif
PM_SETRE(PL_reg_curpm, rx);
PL_reg_oldcurpm = PL_curpm;
@@ -5401,7 +5401,7 @@ NULL
rex = (struct regexp *)SvANY(rex_sv);
rexi = RXi_GET(rex);
cur_curlyx = cur_eval->u.eval.prev_curlyx;
- ReREFCNT_inc(rex_sv);
+ (void)ReREFCNT_inc(rex_sv);
st->u.eval.cp = regcppush(0); /* Save *all* the positions. */
/* rex was changed so update the pointer in PL_reglastparen and PL_reglastcloseparen */