From 73bcd263546750eb4cc6a4533104d6b205cd9ad0 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Tue, 16 Feb 2021 16:36:52 -0500 Subject: [PATCH] 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; 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;