[Openmp-commits] [openmp] 090309d - [OpenMP] Fix warnings
Hansang Bae via Openmp-commits
openmp-commits at lists.llvm.org
Wed Apr 6 10:35:19 PDT 2022
Author: Hansang Bae
Date: 2022-04-06T12:35:05-05:00
New Revision: 090309d31624798fc5dde0220147519dc22c73c8
URL: https://github.com/llvm/llvm-project/commit/090309d31624798fc5dde0220147519dc22c73c8
DIFF: https://github.com/llvm/llvm-project/commit/090309d31624798fc5dde0220147519dc22c73c8.diff
LOG: [OpenMP] Fix warnings
Silenced compiler warnings after pushing the following change.
https://reviews.llvm.org/D122107
Differential Revision: https://reviews.llvm.org/D123233
Added:
Modified:
openmp/runtime/src/kmp_tasking.cpp
openmp/runtime/src/ompt-internal.h
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp
index c54912f6d9989..63f7ddc1aa478 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 fb7b267b4a4e0..a85fe3835c691 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 {
More information about the Openmp-commits
mailing list