[OpenMP] Fix warnings

Silenced compiler warnings after pushing the following change.
https://reviews.llvm.org/D122107

Differential Revision: https://reviews.llvm.org/D123233
This commit is contained in:
Hansang Bae 2022-04-06 11:15:01 -05:00
parent 62a983ebc5
commit 090309d316
2 changed files with 3 additions and 1 deletions

View File

@ -711,6 +711,8 @@ static inline void __ompt_task_init(kmp_taskdata_t *task, int tid) {
ompt_frame_runtime | ompt_frame_framepointer;
task->ompt_task_info.frame.enter_frame_flags =
ompt_frame_runtime | ompt_frame_framepointer;
task->ompt_task_info.dispatch_chunk.start = 0;
task->ompt_task_info.dispatch_chunk.iterations = 0;
}
// __ompt_task_start:

View File

@ -57,7 +57,7 @@ typedef struct {
ompt_data_t task_data;
struct kmp_taskdata *scheduling_parent;
int thread_num;
ompt_dispatch_chunk_t dispatch_chunk = {0, 0};
ompt_dispatch_chunk_t dispatch_chunk;
} ompt_task_info_t;
typedef struct {