summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_exec.c b/vm_exec.c
index c7057cd445..a8b14e30de 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -29,6 +29,7 @@ static void vm_analysis_insn(int insn);
#endif
/* #define DECL_SC_REG(r, reg) VALUE reg_##r */
+#if VM_DEBUG_STACKOVERFLOW
NORETURN(static void vm_stack_overflow_for_insn(void));
static void
vm_stack_overflow_for_insn(void)
@@ -37,6 +38,7 @@ vm_stack_overflow_for_insn(void)
"Please contact ruby-core/dev with your (a part of) script. "
"This check will be removed soon.");
}
+#endif
#if !OPT_CALL_THREADED_CODE
static VALUE