1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix build on MSVC

Use compiler protable way of delcaring function as maybe unused.
This commit is contained in:
Alan Wu 2021-02-16 16:36:52 -05:00
parent 0ebb072f9f
commit 73bcd26354

View file

@ -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;