[Openmp-commits] [openmp] r340771 - [OpenMP][Fix] Conditional compilation leaves variables unused
Gheorghe-Teodor Bercea via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 27 12:54:26 PDT 2018
Author: gbercea
Date: Mon Aug 27 12:54:26 2018
New Revision: 340771
URL: http://llvm.org/viewvc/llvm-project?rev=340771&view=rev
Log:
[OpenMP][Fix] Conditional compilation leaves variables unused
Summary: Prevent variables from being left unused by conditional compilation.
Reviewers: ABataev, grokos, Hahnfeld, caomhin, protze.joachim
Reviewed By: Hahnfeld
Subscribers: guansong, openmp-commits
Differential Revision: https://reviews.llvm.org/D51303
Modified:
openmp/trunk/runtime/src/kmp_csupport.cpp
Modified: openmp/trunk/runtime/src/kmp_csupport.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_csupport.cpp?rev=340771&r1=340770&r2=340771&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_csupport.cpp (original)
+++ openmp/trunk/runtime/src/kmp_csupport.cpp Mon Aug 27 12:54:26 2018
@@ -2570,6 +2570,7 @@ void __kmpc_set_nest_lock(ident_t *loc,
#endif
int acquire_status =
KMP_D_LOCK_FUNC(user_lock, set)((kmp_dyna_lock_t *)user_lock, gtid);
+ (void) acquire_status;
#if USE_ITT_BUILD
__kmp_itt_lock_acquired((kmp_user_lock_p)user_lock);
#endif
@@ -2760,6 +2761,7 @@ void __kmpc_unset_nest_lock(ident_t *loc
#endif
int release_status =
KMP_D_LOCK_FUNC(user_lock, unset)((kmp_dyna_lock_t *)user_lock, gtid);
+ (void) release_status;
#if OMPT_SUPPORT && OMPT_OPTIONAL
// This is the case, if called from omp_init_lock_with_hint:
More information about the Openmp-commits
mailing list