diff options
author | Karl Williamson <khw@cpan.org> | 2019-11-16 16:13:57 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-11-21 18:19:46 -0700 |
commit | 1bb4bd13bebef37d6623688a00287d54356f6dfc (patch) | |
tree | c51c7fa7c66d696484380f4565d1d7fcd6ac4762 /invlist_inline.h | |
parent | 8cd2df90afad606059f373d58f46f8729709a6f2 (diff) | |
download | perl-1bb4bd13bebef37d6623688a00287d54356f6dfc.tar.gz |
PATCH: gh #17275 Silence new warning
This was caused by a static inline function in a header that was
#included in a file that didn't use it. Normally, these functions are
#ifdef'd so as to be visible only to files in which they are used.
Some compilers warn that the function is defined but not used
otherwise. The solution is to remove this function's visibility from
the file that didn't use it.
Diffstat (limited to 'invlist_inline.h')
-rw-r--r-- | invlist_inline.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/invlist_inline.h b/invlist_inline.h index 33f8aee385..f6ac819533 100644 --- a/invlist_inline.h +++ b/invlist_inline.h @@ -161,6 +161,9 @@ S_invlist_highest(SV* const invlist) : array[len - 1] - 1; } +#endif +#if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_OP_C) + PERL_STATIC_INLINE STRLEN* S_get_invlist_iter_addr(SV* invlist) { |