diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2023-07-06 11:45:58 -0500 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2023-07-06 11:47:45 -0500 |
commit | 2d02988f7430ae4b796a796ade8b19fc39cb8453 (patch) | |
tree | 519175e4bfacd8c415b7edd895154973ac479063 /openmp | |
parent | b420e0ed27c56b48e90893b47f65799257b45668 (diff) | |
download | llvm-2d02988f7430ae4b796a796ade8b19fc39cb8453.zip llvm-2d02988f7430ae4b796a796ade8b19fc39cb8453.tar.gz llvm-2d02988f7430ae4b796a796ade8b19fc39cb8453.tar.bz2 |
[OpenMP] Remove gcc-12 warnings from libomp
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/runtime/src/kmp.h | 2 | ||||
-rw-r--r-- | openmp/runtime/src/kmp_runtime.cpp | 1 |
2 files changed, 1 insertions, 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) |