Skip to content

Commit 2f36af7

Browse files
authored
Add files via upload
1 parent dfdd5d3 commit 2f36af7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Common/src/linear_algebra/CSysSolve.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,11 @@ template <class ScalarType>
741741
void BCGSTABpre_parallel(const CSysVector<ScalarType>& a, CSysVector<ScalarType>& b_in,
742742
const CMatrixVectorProduct<ScalarType>& mat_vec, const CPreconditioner<ScalarType>& precond, const CConfig* config) {
743743

744-
ScalarType norm_r_in = 0.0, norm0_in = 0.0;
744+
// NOTE: norm0_in is currently unused. To avoid -Werror unused-variable warnings,
745+
// we mark it [[maybe_unused]] so that future changes can reuse it without
746+
// triggering a build failure.
747+
ScalarType norm_r_in = 0.0;
748+
[[maybe_unused]] ScalarType norm0_in = 0.0;
745749
unsigned long ii = 0;
746750

747751
CSysVector<ScalarType> A_z_i;

0 commit comments

Comments
 (0)