Skip to content

Commit

Permalink
fix compilation issues when ENABLE_TRACE is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
gforgeron committed Feb 3, 2022
1 parent 9987f02 commit 7165f32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,10 @@ int main (int argc, char **argv)
if (max_iter && iterations + refresh_rate > max_iter)
refresh_rate = max_iter - iterations;

#ifdef ENABLE_TRACE
if (trace_may_be_used && (iterations + 1 == trace_starting_iteration))
do_trace = 1;
#endif

monitoring_start_iteration ();

Expand Down
1 change: 1 addition & 0 deletions traces/include/trace_record.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ void trace_record_finalize (void);
#else

#define do_trace (unsigned)0
#define trace_may_be_used (unsigned)0

#define trace_record_declare_task_ids(a) (void)0
#define trace_record_start_iteration(t) (void)0
Expand Down

0 comments on commit 7165f32

Please sign in to comment.