From 81f54ac7f5f6cf7337babd8633132716c21d851a Mon Sep 17 00:00:00 2001 From: "Craig A. Berry" Date: Thu, 29 May 2014 17:08:37 -0500 Subject: Only prototype should_warn_nl under PERL_CORE. Otherwise the prototype is seen in places where the function itself is not defined, which is illegal for inline functions. Follow-up to 7cb3f9598b37fc. --- proto.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'proto.h') diff --git a/proto.h b/proto.h index f7716b5503..140d7f3efa 100644 --- a/proto.h +++ b/proto.h @@ -3849,12 +3849,6 @@ PERL_CALLCONV HEK* Perl_share_hek(pTHX_ const char* str, I32 len, U32 hash) #define PERL_ARGS_ASSERT_SHARE_HEK \ assert(str) -PERL_STATIC_INLINE bool S_should_warn_nl(const char *pv) - __attribute__warn_unused_result__ - __attribute__nonnull__(1); -#define PERL_ARGS_ASSERT_SHOULD_WARN_NL \ - assert(pv) - PERL_CALLCONV void Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp) __attribute__nonnull__(pTHX_3); #define PERL_ARGS_ASSERT_SORTSV \ @@ -5501,6 +5495,12 @@ PERL_CALLCONV void Perl_parser_free_nexttoke_ops(pTHX_ yy_parser *parser, OPSLAB #define PERL_ARGS_ASSERT_PARSER_FREE_NEXTTOKE_OPS \ assert(parser); assert(slab) +PERL_STATIC_INLINE bool S_should_warn_nl(const char *pv) + __attribute__warn_unused_result__ + __attribute__nonnull__(1); +#define PERL_ARGS_ASSERT_SHOULD_WARN_NL \ + assert(pv) + # if defined(PERL_DEBUG_READONLY_OPS) PERL_CALLCONV void Perl_Slab_to_ro(pTHX_ OPSLAB *slab) __attribute__nonnull__(pTHX_1); -- cgit v1.2.1