From b5bb5ed0dbe0100d18b119f5076a67acee0bbbbe Mon Sep 17 00:00:00 2001 From: normal Date: Sun, 18 Nov 2018 01:37:46 +0000 Subject: io.c (novl_wait_for_single_fd): VM_UNREACHABLE instead of assert This respects VM_CHECK_MODE and is more consistent with the rest of our code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 32629165cf..dc172efc9c 100644 --- a/io.c +++ b/io.c @@ -10725,7 +10725,7 @@ nogvl_wait_for_single_fd(int fd, short events) ret = rb_fd_select(fd + 1, 0, &fds, 0, 0); break; default: - assert(0 && "not supported yet, should never get here"); + VM_UNREACHABLE(nogvl_wait_for_single_fd); } rb_fd_term(&fds); -- cgit v1.2.3