summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index 24db7b23f1..9e999a8f51 100644
--- a/enum.c
+++ b/enum.c
@@ -700,7 +700,8 @@ first_i(VALUE i, VALUE params, int argc, VALUE *argv)
memo->u1.value = i;
rb_iter_break();
- return Qnil; /* not reached */
+
+ UNREACHABLE;
}
static VALUE enum_take(VALUE obj, VALUE n);