diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-07-14 18:02:55 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-07-14 18:02:55 +0200 |
commit | 0e1b3a4b35c4f6798b244c5b82edcf759e9e6806 (patch) | |
tree | 2beb5a0417915271052687c97a3e82b2a90f10dc /proto.h | |
parent | 548e9a3a0c4e2b14151b17a2c96eedd7683fcc77 (diff) | |
download | perl-0e1b3a4b35c4f6798b244c5b82edcf759e9e6806.tar.gz |
Make prototypes and declarations for Perl_pad_add_name_{pv,pvn,sv} agree.
cc76b5cc1552a605 added all 3 functions to the API, but declared prototypes
with const U32 flags, whilst the definitions had that parameter non-const.
Some compilers issue warnings about this inconsistency.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2797,12 +2797,12 @@ PERL_CALLCONV PADOFFSET Perl_pad_add_name_pv(pTHX_ const char *name, const U32 f #define PERL_ARGS_ASSERT_PAD_ADD_NAME_PV \ assert(name) -PERL_CALLCONV PADOFFSET Perl_pad_add_name_pvn(pTHX_ const char *namepv, STRLEN namelen, const U32 flags, HV *typestash, HV *ourstash) +PERL_CALLCONV PADOFFSET Perl_pad_add_name_pvn(pTHX_ const char *namepv, STRLEN namelen, U32 flags, HV *typestash, HV *ourstash) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_PAD_ADD_NAME_PVN \ assert(namepv) -PERL_CALLCONV PADOFFSET Perl_pad_add_name_sv(pTHX_ SV *name, const U32 flags, HV *typestash, HV *ourstash) +PERL_CALLCONV PADOFFSET Perl_pad_add_name_sv(pTHX_ SV *name, U32 flags, HV *typestash, HV *ourstash) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_PAD_ADD_NAME_SV \ assert(name) |