summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2012-11-01 13:43:39 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2012-11-01 13:43:39 +0000
commitcd88b75a7a5146fdb4fac022b6d4bd40ce4accfc (patch)
tree466c8b430c5d4eaf98f42f16bdbf0dab4fe9e086 /proto.h
parent19253ae62cd130797cb3e42f196ac26a6417e08c (diff)
downloadperl-cd88b75a7a5146fdb4fac022b6d4bd40ce4accfc.tar.gz
Remove __attribute__malloc__ from MYSWAP functions
These functions are only used when the native sockets functions are not available, e.g. when building miniperl on Windows following commit 19253ae62c, so gcc's warning about ignoring the __malloc__ attribute here is not normally seen. The addition of "a" to these functions in embed.fnc by commit f54cb97a39 was presumably wrong since none of them actually allocate any memory (nor did so at the time), so change it to just "R" (which is implied by the "a" and is still appropriate).
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/proto.h b/proto.h
index d069792e28..4bfa724f70 100644
--- a/proto.h
+++ b/proto.h
@@ -5227,17 +5227,14 @@ PERL_CALLCONV MEM_SIZE Perl_malloced_size(void *p)
#endif
#if defined(MYSWAP)
PERL_CALLCONV long Perl_my_htonl(pTHX_ long l)
- __attribute__malloc__
__attribute__warn_unused_result__
__attribute__pure__;
PERL_CALLCONV long Perl_my_ntohl(pTHX_ long l)
- __attribute__malloc__
__attribute__warn_unused_result__
__attribute__pure__;
PERL_CALLCONV short Perl_my_swap(pTHX_ short s)
- __attribute__malloc__
__attribute__warn_unused_result__
__attribute__pure__;