From: Father Chrysostomos Date: Wed, 26 Jun 2013 13:05:06 +0000 (-0700) Subject: embed.fnc: S_ptr_hash is inline X-Git-Tag: upstream/5.20.0~2914 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec79994d178a58009af5b2b0b22e1d93a4787c7a;p=platform%2Fupstream%2Fperl.git embed.fnc: S_ptr_hash is inline S_ptr_hash is declared with PERL_STATIC_INLINE in hv.c, but embed thinks it is just static, so the proto.h and hv.c definitions do not match, resulting in warnings. --- diff --git a/embed.fnc b/embed.fnc index 8098126..a906eae 100644 --- a/embed.fnc +++ b/embed.fnc @@ -1778,7 +1778,7 @@ sn |void |hv_magic_check |NN HV *hv|NN bool *needs_copy|NN bool *needs_store s |void |unshare_hek_or_pvn|NULLOK const HEK* hek|NULLOK const char* str|I32 len|U32 hash sR |HEK* |share_hek_flags|NN const char *str|I32 len|U32 hash|int flags rs |void |hv_notallowed |int flags|NN const char *key|I32 klen|NN const char *msg -sn |U32|ptr_hash|PTRV u +in |U32|ptr_hash|PTRV u s |struct xpvhv_aux*|hv_auxinit|NN HV *hv sM |SV* |hv_delete_common|NULLOK HV *hv|NULLOK SV *keysv \ |NULLOK const char *key|STRLEN klen|int k_flags|I32 d_flags \ diff --git a/proto.h b/proto.h index b035d84..86dffce 100644 --- a/proto.h +++ b/proto.h @@ -5725,7 +5725,7 @@ STATIC HE* S_new_he(pTHX) __attribute__malloc__ __attribute__warn_unused_result__; -STATIC U32 S_ptr_hash(PTRV u); +PERL_STATIC_INLINE U32 S_ptr_hash(PTRV u); STATIC SV * S_refcounted_he_value(pTHX_ const struct refcounted_he *he) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_REFCOUNTED_HE_VALUE \