[Openmp-commits] [openmp] r321379 - [OMPT] Add missing initialization in nested_lwt.c test case

Paul Osmialowski via Openmp-commits openmp-commits at lists.llvm.org
Fri Dec 22 11:24:06 PST 2017


Author: pawosm01
Date: Fri Dec 22 11:24:06 2017
New Revision: 321379

URL: http://llvm.org/viewvc/llvm-project?rev=321379&view=rev
Log:
[OMPT] Add missing initialization in nested_lwt.c test case

Without this initialization this test case tend to fail.

Differential Revision: https://reviews.llvm.org/D41542

Modified:
    openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c

Modified: openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c?rev=321379&r1=321378&r2=321379&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c (original)
+++ openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c Fri Dec 22 11:24:06 2017
@@ -9,7 +9,7 @@
 int main()
 {
   omp_set_nested(1);
-  int condition;
+  int condition = 0;
 
   #pragma omp parallel num_threads(4)
   {




More information about the Openmp-commits mailing list