Skip to content

Commit

Permalink
regcomp.c - silence build warning under NO_TAINT_SUPPORT
Browse files Browse the repository at this point in the history
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: #19654
  • Loading branch information
demerphq authored and pull[bot] committed May 11, 2022
1 parent a7b5e0e commit d33f200
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions regcomp.c
Expand Up @@ -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;

Expand Down

0 comments on commit d33f200

Please sign in to comment.