summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-03-29 12:30:25 +0100
committerNicholas Clark <nick@ccl4.org>2009-03-29 20:06:53 +0100
commit9340c80aaec7d3857f387eea86207c1a9604b2ad (patch)
treed14cf6e87ca4541f6c552727e937332ca625b990 /proto.h
parent51683ce6d9770c21b79198196ae37e3474eceb5f (diff)
downloadperl-9340c80aaec7d3857f387eea86207c1a9604b2ad.tar.gz
In Perl_newCONSTSUB(), sv should not be NULL.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto.h b/proto.h
index 552b9f66d9..1c132dbc63 100644
--- a/proto.h
+++ b/proto.h
@@ -1992,7 +1992,11 @@ PERL_CALLCONV OP* Perl_newCONDOP(pTHX_ I32 flags, OP* first, OP* trueop, OP* fal
#define PERL_ARGS_ASSERT_NEWCONDOP \
assert(first)
-PERL_CALLCONV CV* Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
+PERL_CALLCONV CV* Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv)
+ __attribute__nonnull__(pTHX_3);
+#define PERL_ARGS_ASSERT_NEWCONSTSUB \
+ assert(sv)
+
#ifdef PERL_MAD
PERL_CALLCONV OP* Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
#else