From 2d02988f7430ae4b796a796ade8b19fc39cb8453 Mon Sep 17 00:00:00 2001 From: Jonathan Peyton Date: Thu, 6 Jul 2023 11:45:58 -0500 Subject: [PATCH] [OpenMP] Remove gcc-12 warnings from libomp --- openmp/runtime/src/kmp.h | 2 +- openmp/runtime/src/kmp_runtime.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h index f50fb01..3a2e8d6 100644 --- a/openmp/runtime/src/kmp.h +++ b/openmp/runtime/src/kmp.h @@ -1120,7 +1120,7 @@ extern void __kmp_init_target_task(); #endif /* KMP_MAX_NTH */ #ifdef PTHREAD_STACK_MIN -#define KMP_MIN_STKSIZE PTHREAD_STACK_MIN +#define KMP_MIN_STKSIZE ((size_t)PTHREAD_STACK_MIN) #else #define KMP_MIN_STKSIZE ((size_t)(32 * 1024)) #endif diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp index 0154ee0..2d5b37b 100644 --- a/openmp/runtime/src/kmp_runtime.cpp +++ b/openmp/runtime/src/kmp_runtime.cpp @@ -6105,7 +6105,6 @@ void *__kmp_launch_thread(kmp_info_t *this_thr) { __kmp_join_barrier(gtid); } } - TCR_SYNC_PTR((intptr_t)__kmp_global.g.g_done); #if OMPD_SUPPORT if (ompd_state & OMPD_ENABLE_BP) -- 2.7.4