summaryrefslogtreecommitdiff
path: root/builtin.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-12-18 22:35:51 +0000
committerPaul Evans <leonerd@leonerd.org.uk>2022-01-25 15:02:58 +0000
commitcc4aa2131ff2d87e0c3fa9bd8cf3bcfa66e245f3 (patch)
treef8a4918c97f3cb590e7d83703f7c61d2bd8d9e0c /builtin.c
parent59802880d7959408d0f0c8f818b71a12bba7d289 (diff)
downloadperl-cc4aa2131ff2d87e0c3fa9bd8cf3bcfa66e245f3.tar.gz
Emit experimental::builtin warnings from the builtin function callchecker
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/builtin.c b/builtin.c
index 1e364f34a3..22fafb87f7 100644
--- a/builtin.c
+++ b/builtin.c
@@ -50,6 +50,10 @@ static OP *ck_builtin_const(pTHX_ OP *entersubop, GV *namegv, SV *ckobj)
{
const struct BuiltinFuncDescriptor *builtin = NUM2PTR(const struct BuiltinFuncDescriptor *, SvUV(ckobj));
+ Perl_ck_warner_d(aTHX_
+ packWARN(WARN_EXPERIMENTAL__BUILTIN),
+ "Built-in function '%s' is experimental", builtin->name);
+
SV *prototype = newSVpvs("");
SAVEFREESV(prototype);
@@ -145,6 +149,10 @@ static OP *ck_builtin_func1(pTHX_ OP *entersubop, GV *namegv, SV *ckobj)
{
const struct BuiltinFuncDescriptor *builtin = NUM2PTR(const struct BuiltinFuncDescriptor *, SvUV(ckobj));
+ Perl_ck_warner_d(aTHX_
+ packWARN(WARN_EXPERIMENTAL__BUILTIN),
+ "Built-in function '%s' is experimental", builtin->name);
+
SV *prototype = newSVpvs("$");
SAVEFREESV(prototype);