From 888e418a64aeb94c7bb066f586b925ae576e9435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ojeda=20B=C3=A4r?= Date: Sat, 11 Jan 2025 14:48:23 +0000 Subject: [PATCH] Fix MSVC compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicolás Ojeda Bär --- src/obj_stubs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/obj_stubs.c b/src/obj_stubs.c index ce0d60d..90cec94 100644 --- a/src/obj_stubs.c +++ b/src/obj_stubs.c @@ -2,7 +2,8 @@ #include // only used for public release; // internally this is implemented by caml_dummy_obj_is_stack in compiler runtime -CAMLprim value caml_dummy_obj_is_stack(__attribute__((unused)) value blk) { +CAMLprim value caml_dummy_obj_is_stack(value blk) { + (void)blk; // Public compilers don't support stack allocation, so we always return 0 return Val_int(0); }