diff options
author | Yves Orton <demerphq@gmail.com> | 2022-04-22 04:06:35 +0200 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-04-21 20:38:11 -0600 |
commit | 70f5c3e99f92075109e4262faf825fb00ea79bd3 (patch) | |
tree | 415011a5670c96becd108c6736c9ca522a01b73f /regcomp.c | |
parent | 99db5f9692dfa6466693dce901a6e805243181fc (diff) | |
download | perl-70f5c3e99f92075109e4262faf825fb00ea79bd3.tar.gz |
regcomp.c - silence build warning under NO_TAINT_SUPPORT
The variable 'oldtainted' is unused when NO_TAINT_SUPPORT is defined.
This patch ifdefs it out of the compiled code.
This should resolve GH Issue #19654
See: https://github.com/Perl/perl5/issues/19654
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -9390,7 +9390,9 @@ S_invlist_replace_list_destroys_src(pTHX_ SV * dest, SV * src) const STRLEN src_byte_len = SvLEN(src); char * array = SvPVX(src); +#ifndef NO_TAINT_SUPPORT const int oldtainted = TAINT_get; +#endif PERL_ARGS_ASSERT_INVLIST_REPLACE_LIST_DESTROYS_SRC; |