From 0c40fe8aaed89feec3b32a924d44bbde89722d99 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 17 Nov 2024 19:56:02 +0900 Subject: [PATCH] Make `rb_ec_set_vm_stack` conformant to the C++11 requirement Https://learn.microsoft.com/en-us/cpp/build/reference/zc-inline-remove-unreferenced-comdat?view=msvc-140 > If `/Zc:inline` is specified, the compiler enforces the C++11 > requirement that all functions declared inline must have a definition > available in the same translation unit if they're used. --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm.c b/vm.c index 12634d687e..3a0daec613 100644 --- a/vm.c +++ b/vm.c @@ -3070,7 +3070,7 @@ thread_alloc(VALUE klass) return obj; } -inline void +void rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size) { ec->vm_stack = stack;