summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-08 15:13:37 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-08 15:13:37 +0900
commite474c189da8314f44659eadcbf9ca3c7d4393bfb (patch)
tree9b57a10fd42d0ea622ac8f21999e30bd04790e27 /range.c
parent3b1029f89417c10cf1293e1106780d1f3263d9f4 (diff)
Suppress -Wswitch warnings
Diffstat (limited to 'range.c')
-rw-r--r--range.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/range.c b/range.c
index a77d324f852..2444f0588d1 100644
--- a/range.c
+++ b/range.c
@@ -318,6 +318,8 @@ linear_object_p(VALUE obj)
case T_FLOAT:
case T_BIGNUM:
return TRUE;
+ default:
+ break;
}
if (rb_obj_is_kind_of(obj, rb_cNumeric)) return TRUE;
if (rb_obj_is_kind_of(obj, rb_cTime)) return TRUE;