summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorLukas Mai <lukasmai.403@gmail.com>2023-03-30 19:17:56 +0200
committerYves Orton <demerphq@gmail.com>2023-03-31 01:56:35 +0800
commit416ea06b9fcd686a805c1090d6ceee022048d250 (patch)
tree973715ec9bbc05a0f7ca828ddf27ab2a956d17ea /regexec.c
parentecf14c7348b18a7ae08c466d7c890cd4443285b7 (diff)
downloadperl-416ea06b9fcd686a805c1090d6ceee022048d250.tar.gz
regexec.c: fix warning about unused argument to capture_clear
Previously: regexec.c: In function ‘S_capture_clear’: regexec.c:373:72: warning: unused parameter ‘str’ [-Wunused-parameter] 373 | S_capture_clear(pTHX_ regexp *rex, U16 from_ix, U16 to_ix, const char *str comma_pDEPTH) { | ~~~~~~~~~~~~^~~
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regexec.c b/regexec.c
index 4fed617b21..86d170c49e 100644
--- a/regexec.c
+++ b/regexec.c
@@ -372,6 +372,7 @@ S_unwind_paren(pTHX_ regexp *rex, U32 lp, U32 lcp comma_pDEPTH) {
PERL_STATIC_INLINE void
S_capture_clear(pTHX_ regexp *rex, U16 from_ix, U16 to_ix, const char *str comma_pDEPTH) {
PERL_ARGS_ASSERT_CAPTURE_CLEAR;
+ PERL_UNUSED_ARG(str); /* only used for debugging */
U16 my_ix;
DECLARE_AND_GET_RE_DEBUG_FLAGS;
for ( my_ix = from_ix; my_ix <= to_ix; my_ix++ ) {