Skip to content

Commit

Permalink
idk why these changes are here; it builds fine without them?
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrewh committed Dec 27, 2024
1 parent 0b572c2 commit 7ab41d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/lib/instrument.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ instrument_exit_event(void)
/* support dr_get_mcontext() from the exit event */
if (!standalone_library)
get_thread_private_dcontext()->client_data->mcontext_in_dcontext = true;
call_all(exit_callbacks, int (*)(void *),
call_all(exit_callbacks, int (*)(),
/* It seems the compiler is confused if we pass no var args
* to the call_all macro. Bogus NULL arg */
NULL);
Expand All @@ -885,13 +885,13 @@ instrument_post_attach_event(void)
ASSERT(post_attach_callbacks.num == 0);
return;
}
call_all(post_attach_callbacks, int (*)(void *), NULL);
call_all(post_attach_callbacks, int (*)(), NULL);
}

void
instrument_pre_detach_event(void)
{
call_all(pre_detach_callbacks, int (*)(void *), NULL);
call_all(pre_detach_callbacks, int (*)(), NULL);
}

void
Expand Down Expand Up @@ -1492,7 +1492,7 @@ instrument_fork_init(dcontext_t *dcontext)
void
instrument_low_on_memory()
{
call_all(low_on_memory_callbacks, int (*)(void *), NULL);
call_all(low_on_memory_callbacks, int (*)());
}

/* PR 536058: split the exit event from thread cleanup, to provide a
Expand Down

0 comments on commit 7ab41d3

Please sign in to comment.