Skip to content

Commit 5223758

Browse files
author
Zachary DeBruine
committed
fix: suppress n_threads unused-variable warning in non-OpenMP path
1 parent 7809e9a commit 5223758

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

inst/include/FactorNet/primitives/cpu/fused_nnls.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ inline void fused_rhs_nnls_sparse(
9595
#else
9696
int n_threads = 1; // NOLINT(misc-const-correctness)
9797
(void)threads;
98+
(void)n_threads;
9899
#endif
99100

100101
const bool has_L1 = (L1 > Scalar(0));
@@ -177,6 +178,7 @@ inline void fused_rhs_cholesky_sparse(
177178
#else
178179
int n_threads = 1;
179180
(void)threads;
181+
(void)n_threads;
180182
#endif
181183

182184
// Pre-factorize G once — O(k³), amortized over n columns

0 commit comments

Comments
 (0)