From ea4a4c302cf1733ce6c84ffb641ab2c43846f7de Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 13 Dec 2023 10:28:19 -0800 Subject: [PATCH] [PRISM] Fix a -Wformat-zero-length warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../prism_compile.c: In function ‘pm_compile_node’: ../prism_compile.c:2330:20: warning: zero-length gnu_printf format string [-Wformat-zero-length] 2330 | rb_bug(""); | ^~ --- prism_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prism_compile.c b/prism_compile.c index d744f435069434..dcc0d38bd4c1eb 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -2327,7 +2327,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, return; } COMPILE_ERROR(ERROR_ARGS "Invalid break"); - rb_bug(""); + rb_bug("Invalid break"); } return; }