[Openmp-commits] [PATCH] D123233: [OpenMP] Fix warnings

Hansang Bae via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Apr 6 09:29:52 PDT 2022


hbae created this revision.
hbae added a reviewer: tianshilei1992.
hbae added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
hbae requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123233

Files:
  openmp/runtime/src/kmp_tasking.cpp
  openmp/runtime/src/ompt-internal.h


Index: openmp/runtime/src/ompt-internal.h
===================================================================
--- openmp/runtime/src/ompt-internal.h
+++ openmp/runtime/src/ompt-internal.h
@@ -57,7 +57,7 @@
   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 {
Index: openmp/runtime/src/kmp_tasking.cpp
===================================================================
--- openmp/runtime/src/kmp_tasking.cpp
+++ openmp/runtime/src/kmp_tasking.cpp
@@ -711,6 +711,8 @@
       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:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123233.420923.patch
Type: text/x-patch
Size: 923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220406/7f079698/attachment.bin>


More information about the Openmp-commits mailing list