Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ujit_codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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;
Expand Down
4 changes: 3 additions & 1 deletion ujit_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ cfunc_needs_frame(const rb_method_cfunc_t *cfunc)
}

// GC root for interacting with the GC
struct ujit_root_struct {};
struct ujit_root_struct {
int unused; // empty structs are not legal in C99
};

// Map cme_or_cc => [[iseq, offset]]. An entry in the map means compiled code at iseq[offset]
// is only valid when cme_or_cc is valid
Expand Down