Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regcomp_trie: prevent wordlen value not used warning
This occurs with clang-17, and possibly other versions: regcomp_trie.c:667:13: warning: variable 'wordlen' set but not used [-Wunused-but-set-variable] 667 | U32 wordlen = 0; /* required init */ | ^ This happens because while the first loop in Perl_make_trie calculates wordlen, mostly via the TRIE_READ_CHAR macro, that calculated value isn't used. The later loops do use the value of wordlen via the TRIE_HANDLE_WORD() macro. Unfortunately the use in TRIE_READ_CHAR() means we can't remove this first definition, so suppress the warning.
- Loading branch information