ruby-changes:68761
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:13:28 +0900 (JST)
Subject: [ruby-changes:68761] 73bcd26354 (master): Fix build on MSVC
https://git.ruby-lang.org/ruby.git/commit/?id=73bcd26354 From 73bcd263546750eb4cc6a4533104d6b205cd9ad0 Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Tue, 16 Feb 2021 16:36:52 -0500 Subject: Fix build on MSVC Use compiler protable way of delcaring function as maybe unused. --- ujit_codegen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ujit_codegen.c b/ujit_codegen.c index 26aa4ffcf0..6ab1ee1c9b 100644 --- a/ujit_codegen.c +++ b/ujit_codegen.c @@ -27,7 +27,8 @@ static codeblock_t outline_block; https://github.com/ruby/ruby/blob/trunk/ujit_codegen.c#L27 codeblock_t* ocb = NULL; // Print the current source location for debugging purposes -static void __attribute__((unused)) +RBIMPL_ATTR_MAYBE_UNUSED() +static void jit_print_loc(jitstate_t* jit, const char* msg) { char *ptr; -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/