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 /embed.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 'embed.h')
-rw-r--r-- | embed.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1074,14 +1074,16 @@ # if defined(PERL_IN_REGCOMP_C) || defined (PERL_IN_DUMP_C) || defined(PERL_IN_OP_C) #define _invlist_dump(a,b,c,d) Perl__invlist_dump(aTHX_ a,b,c,d) # endif -# if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_OP_C) || defined(PERL_IN_DOOP_C) -#define add_cp_to_invlist(a,b) S_add_cp_to_invlist(aTHX_ a,b) +# if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_OP_C) #define get_invlist_iter_addr S_get_invlist_iter_addr -#define invlist_extend(a,b) S_invlist_extend(aTHX_ a,b) -#define invlist_highest S_invlist_highest #define invlist_iterfinish S_invlist_iterfinish #define invlist_iterinit S_invlist_iterinit #define invlist_iternext S_invlist_iternext +# endif +# if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_OP_C) || defined(PERL_IN_DOOP_C) +#define add_cp_to_invlist(a,b) S_add_cp_to_invlist(aTHX_ a,b) +#define invlist_extend(a,b) S_invlist_extend(aTHX_ a,b) +#define invlist_highest S_invlist_highest #define invlist_set_len(a,b,c) S_invlist_set_len(aTHX_ a,b,c) # endif # if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_PERL_C) || defined(PERL_IN_UTF8_C) |