summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-10 11:40:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-10 11:40:49 +0000
commit1f5bf61c6e8316f489221bf93b159ece80c8c00e (patch)
treed7e7c8f03d0715208e5493863e172aa7f94b4f81 /vm_core.h
parentdf94c66f71448cf30b34375349fd201d1d035423 (diff)
vm_core.h: unreachable VM_UNREACHABLE
* vm_core.h (VM_UNREACHABLE): tell unreachable if possible. suppress an invalid-noreturn warning at rb_fiber_start. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index f7bd4d6b1e..5fc7b2b3ba 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -51,7 +51,7 @@
#else
#define VM_ASSERT(expr) ((void)0)
-#define VM_UNREACHABLE(func) ((void)0)
+#define VM_UNREACHABLE(func) UNREACHABLE
#endif
#define RUBY_VM_THREAD_MODEL 2