Skip to content

Commit

Permalink
silence compiler warning when not building with ITTAPI (#49630)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored May 5, 2023
1 parent e70354d commit 9c6cfc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void jl_init_timing(void)
_Static_assert(JL_TIMING_EVENT_LAST < sizeof(uint64_t) * CHAR_BIT, "Too many timing events!");
_Static_assert((int)JL_TIMING_LAST <= (int)JL_TIMING_EVENT_LAST, "More owners than events!");

int i = 0;
int i __attribute__((unused)) = 0;
#ifdef USE_ITTAPI
#define X(name) jl_timing_ittapi_events[i++] = __itt_event_create(#name, strlen(#name));
JL_TIMING_EVENTS
Expand Down

0 comments on commit 9c6cfc6

Please sign in to comment.