From 04ee666aab071cb6fd9a8b356b22d73250ca6b9b Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Tue, 18 Apr 2023 12:36:57 +0200 Subject: Make the maximum shapes variation warning non-verbose [Feature #19538] Since that category is not enabled by default, making it a verbose warning is redundant. Enabling performance warning should work with the default verbosity level. --- shape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shape.c') diff --git a/shape.c b/shape.c index 0651ec3172..0a5cdd88ee 100644 --- a/shape.c +++ b/shape.c @@ -403,7 +403,7 @@ rb_shape_get_next(rb_shape_t* shape, VALUE obj, ID id) RCLASS_EXT(klass)->variation_count++; if (rb_warning_category_enabled_p(RB_WARN_CATEGORY_PERFORMANCE)) { if (RCLASS_EXT(klass)->variation_count >= SHAPE_MAX_VARIATIONS) { - rb_category_warning( + rb_category_warn( RB_WARN_CATEGORY_PERFORMANCE, "Maximum shapes variations (%d) reached by %"PRIsVALUE", instance variables accesses will be slower.", SHAPE_MAX_VARIATIONS, -- cgit v1.2.1