Skip to content

Commit 5885865

Browse files
committed
Fix build on MSVC
Use compiler protable way of delcaring function as maybe unused.
1 parent a5397d5 commit 5885865

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ujit_codegen.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ static codeblock_t outline_block;
2626
codeblock_t* ocb = NULL;
2727

2828
// Print the current source location for debugging purposes
29-
static void __attribute__((unused))
29+
RBIMPL_ATTR_MAYBE_UNUSED()
30+
static void
3031
jit_print_loc(jitstate_t* jit, const char* msg)
3132
{
3233
char *ptr;

0 commit comments

Comments
 (0)