embed.fnc: S_ptr_hash is inline
authorFather Chrysostomos <sprout@cpan.org>
Wed, 26 Jun 2013 13:05:06 +0000 (06:05 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 26 Jun 2013 13:22:51 +0000 (06:22 -0700)
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.

embed.fnc
proto.h

index 8098126..a906eae 100644 (file)
--- 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 (file)
--- 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   \