[Openmp-commits] [openmp] fa9ee4a - [NFC][OpenMP] Silent unused variable in `kmp_collapse.cpp`
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Tue Mar 26 21:10:27 PDT 2024
Author: Shilei Tian
Date: 2024-03-27T00:09:40-04:00
New Revision: fa9ee4a7f9f7fb9f586d40939269205fc3061c17
URL: https://github.com/llvm/llvm-project/commit/fa9ee4a7f9f7fb9f586d40939269205fc3061c17
DIFF: https://github.com/llvm/llvm-project/commit/fa9ee4a7f9f7fb9f586d40939269205fc3061c17.diff
LOG: [NFC][OpenMP] Silent unused variable in `kmp_collapse.cpp`
Added:
Modified:
openmp/runtime/src/kmp_collapse.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_collapse.cpp b/openmp/runtime/src/kmp_collapse.cpp
index e63a98081db9b8..f1bf04901dc7b7 100644
--- a/openmp/runtime/src/kmp_collapse.cpp
+++ b/openmp/runtime/src/kmp_collapse.cpp
@@ -1482,8 +1482,8 @@ void kmp_handle_upper_triangle_matrix(
original_bounds_nest[0].ub0_u64);
kmp_uint64 outer_lb0 = kmp_fix_iv(original_bounds_nest[0].loop_iv_type,
original_bounds_nest[0].lb0_u64);
- kmp_uint64 inner_ub0 = kmp_fix_iv(original_bounds_nest[1].loop_iv_type,
- original_bounds_nest[1].ub0_u64);
+ [[maybe_unused]] kmp_uint64 inner_ub0 = kmp_fix_iv(
+ original_bounds_nest[1].loop_iv_type, original_bounds_nest[1].ub0_u64);
// calculate the chunk's lower and upper bounds
// the total number of iterations in the loop is the sum of the arithmetic
// progression from the outer lower to outer upper bound (inclusive since the
More information about the Openmp-commits
mailing list