diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2021-12-18 22:35:51 +0000 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2022-01-25 15:02:58 +0000 |
commit | cc4aa2131ff2d87e0c3fa9bd8cf3bcfa66e245f3 (patch) | |
tree | f8a4918c97f3cb590e7d83703f7c61d2bd8d9e0c /builtin.c | |
parent | 59802880d7959408d0f0c8f818b71a12bba7d289 (diff) | |
download | perl-cc4aa2131ff2d87e0c3fa9bd8cf3bcfa66e245f3.tar.gz |
Emit experimental::builtin warnings from the builtin function callchecker
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |