[Openmp-commits] [openmp] b388c84 - [OpenMP] Remove two entirely unused variables

Martin Storsjö via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 12 11:56:18 PST 2021


Author: Martin Storsjö
Date: 2021-02-12T21:55:31+02:00
New Revision: b388c84c096b3810382d34e1e7438bd4bfcf2123

URL: https://github.com/llvm/llvm-project/commit/b388c84c096b3810382d34e1e7438bd4bfcf2123
DIFF: https://github.com/llvm/llvm-project/commit/b388c84c096b3810382d34e1e7438bd4bfcf2123.diff

LOG: [OpenMP] Remove two entirely unused variables

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

Added: 
    

Modified: 
    openmp/runtime/src/z_Windows_NT_util.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/z_Windows_NT_util.cpp b/openmp/runtime/src/z_Windows_NT_util.cpp
index 429ffb6c2a2e..320920283c9d 100644
--- a/openmp/runtime/src/z_Windows_NT_util.cpp
+++ b/openmp/runtime/src/z_Windows_NT_util.cpp
@@ -361,7 +361,6 @@ void __kmp_unlock_suspend_mx(kmp_info_t *th) {
 template <class C>
 static inline void __kmp_suspend_template(int th_gtid, C *flag) {
   kmp_info_t *th = __kmp_threads[th_gtid];
-  int status;
   typename C::flag_t old_spin;
 
   KF_TRACE(30, ("__kmp_suspend_template: T#%d enter for flag's loc(%p)\n",
@@ -467,7 +466,6 @@ template void __kmp_suspend_64<true, false>(int, kmp_flag_64<true, false> *);
 template <class C>
 static inline void __kmp_resume_template(int target_gtid, C *flag) {
   kmp_info_t *th = __kmp_threads[target_gtid];
-  int status;
 
 #ifdef KMP_DEBUG
   int gtid = TCR_4(__kmp_init_gtid) ? __kmp_get_gtid() : -1;


        


More information about the Openmp-commits mailing list