Skip to content

Commit

Permalink
[PRISM] Fix a -Wformat-zero-length warning
Browse files Browse the repository at this point in the history
../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("");
      |                    ^~
  • Loading branch information
k0kubun committed Dec 13, 2023
1 parent 02528f6 commit ea4a4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prism_compile.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit ea4a4c3

Please sign in to comment.