From 090309d31624798fc5dde0220147519dc22c73c8 Mon Sep 17 00:00:00 2001 From: Hansang Bae Date: Wed, 6 Apr 2022 11:15:01 -0500 Subject: [PATCH] [OpenMP] Fix warnings Silenced compiler warnings after pushing the following change. https://reviews.llvm.org/D122107 Differential Revision: https://reviews.llvm.org/D123233 --- openmp/runtime/src/kmp_tasking.cpp | 2 ++ openmp/runtime/src/ompt-internal.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp index c54912f6d998..63f7ddc1aa47 100644 --- a/openmp/runtime/src/kmp_tasking.cpp +++ b/openmp/runtime/src/kmp_tasking.cpp @@ -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: diff --git a/openmp/runtime/src/ompt-internal.h b/openmp/runtime/src/ompt-internal.h index fb7b267b4a4e..a85fe3835c69 100644 --- a/openmp/runtime/src/ompt-internal.h +++ b/openmp/runtime/src/ompt-internal.h @@ -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 {