summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-14 14:03:44 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-07-14 14:04:19 +0900
commitba94404f7021fae41a827e080be6d5dd0bbac8e4 (patch)
treefe0259e6eac63b0824888f5f028bd1f2cb633092 /sprintf.c
parent1d46642487d5340cf6c1f17b36ff0f64b0c1595c (diff)
Add /* fall through */ comments
to suppress some Coverity Scan warnings
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sprintf.c b/sprintf.c
index 53abbdd..471d655 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -677,6 +677,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
case '\n':
case '\0':
p--;
+ /* fall through */
case '%':
if (flags != FNONE) {
rb_raise(rb_eArgError, "invalid format character - %%");