diff options
author | Lukas Mai <lukasmai.403@gmail.com> | 2023-03-30 19:17:56 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-31 01:56:35 +0800 |
commit | 416ea06b9fcd686a805c1090d6ceee022048d250 (patch) | |
tree | 973715ec9bbc05a0f7ca828ddf27ab2a956d17ea /regexec.c | |
parent | ecf14c7348b18a7ae08c466d7c890cd4443285b7 (diff) | |
download | perl-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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++ ) { |