From eef4e8a2c89f6c15096a43ea6783aa7994f1d0ca Mon Sep 17 00:00:00 2001 From: Kouhei Yanagita Date: Fri, 6 Dec 2024 21:47:17 +0900 Subject: [PATCH] [DOC] Add Warning[:strict_unused_block] to NEWS --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 611956d337..22364b1047 100644 --- a/NEWS.md +++ b/NEWS.md @@ -384,6 +384,8 @@ details of the default gems or bundled gems. * Passing a block to a method which doesn't use the passed block will show a warning on verbose mode (`-w`). + In connection with this, a new `strict_unused_block` warning category was introduced. + Turn them on with `-W:strict_unused_block` or `Warning[:strict_unused_block] = true`. [[Feature #15554]] * Redefining some core methods that are specially optimized by the interpreter