summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-01-17 21:45:37 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-01-17 21:45:37 +0000
commit81e08b8aadcad25663c7f2cda0bb6fdffa6a6ae7 (patch)
tree171647a258242107b8526ccf259dfdfffe16e4ae
parentf1913749ad3dc95502a87e2ec7f25f559ea81323 (diff)
downloadperl-81e08b8aadcad25663c7f2cda0bb6fdffa6a6ae7.tar.gz
Gisle points out that it's ok to ignore the return value of newSVrv.
Due to how embed.pl is implemented, this also has the unfortunate side-effect of removing __attribute__malloc__ from the attributes of this function, but given that the new pointer is stored elsewhere anyway, this shouldn't impact what gcc could have optimized. p4raw-id: //depot/perl@26885
-rw-r--r--embed.fnc2
-rw-r--r--proto.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/embed.fnc b/embed.fnc
index 2f0a8fdb94..d3fd5bb47d 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -553,7 +553,7 @@ Apda |SV* |newSVhek |NULLOK const HEK *hek
Apda |SV* |newSVpvn_share |NULLOK const char* s|I32 len|U32 hash
Afpda |SV* |newSVpvf |NN const char* pat|...
Apa |SV* |vnewSVpvf |NN const char* pat|NULLOK va_list* args
-Apda |SV* |newSVrv |NN SV* rv|NULLOK const char* classname
+Apd |SV* |newSVrv |NN SV* rv|NULLOK const char* classname
Apda |SV* |newSVsv |NULLOK SV* old
Apa |OP* |newUNOP |I32 type|I32 flags|NULLOK OP* first
Apa |OP* |newWHENOP |NULLOK OP* cond|NN OP* block
diff --git a/proto.h b/proto.h
index 2ec9550f66..d80f969c56 100644
--- a/proto.h
+++ b/proto.h
@@ -1585,8 +1585,6 @@ PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char* pat, va_list* args)
__attribute__nonnull__(pTHX_1);
PERL_CALLCONV SV* Perl_newSVrv(pTHX_ SV* rv, const char* classname)
- __attribute__malloc__
- __attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1);
PERL_CALLCONV SV* Perl_newSVsv(pTHX_ SV* old)