summaryrefslogtreecommitdiff
path: root/warnings.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-02-25 15:21:14 +0100
committerYves Orton <demerphq@gmail.com>2023-03-18 21:00:54 +0800
commitd81b4f9331172ed96e5382fe1e1091e9d4b85495 (patch)
treea34de6f2d0c902c72aede41423528afaca271a36 /warnings.h
parent905584a6fe44cfcb198cc15af5e082ceb57ccf85 (diff)
downloadperl-d81b4f9331172ed96e5382fe1e1091e9d4b85495.tar.gz
warnings.pm - support deprecated::smartmatch category
Currently we seem to lack a way to have a subcategory under deprecated. It seems reasonable to me that people might want to disable a specific subcategory warning while leaving the rest in place. This patch allows that. Note that both no warnings "deprecated"; and no warnings "deprecated::smartmatch"; work to disable the warning. Deprecated warnings shouldn't be "all or nothing", they should be specific and targetted.
Diffstat (limited to 'warnings.h')
-rw-r--r--warnings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/warnings.h b/warnings.h
index 613c8fb33f..ef8984d7e3 100644
--- a/warnings.h
+++ b/warnings.h
@@ -134,6 +134,10 @@
/* Warnings Categories added in Perl 5.037 */
#define WARN_EXPERIMENTAL__CLASS 72
+
+/* Warnings Categories added in Perl 5.037009 */
+
+#define WARN_DEPRECATED__SMARTMATCH 73
#define WARNsize 19
#define WARN_ALLstring "\125\125\125\125\125\125\125\125\125\125\125\125\125\125\125\125\125\125\125"
#define WARN_NONEstring "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -321,6 +325,7 @@ category parameters passed.
=for apidoc Amnh||WARN_EXPERIMENTAL__FOR_LIST
=for apidoc Amnh||WARN_SCALAR
=for apidoc Amnh||WARN_EXPERIMENTAL__CLASS
+=for apidoc Amnh||WARN_DEPRECATED__SMARTMATCH
=cut
*/