We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfdd5d3 commit 2f36af7Copy full SHA for 2f36af7
Common/src/linear_algebra/CSysSolve.cpp
@@ -741,7 +741,11 @@ template <class ScalarType>
741
void BCGSTABpre_parallel(const CSysVector<ScalarType>& a, CSysVector<ScalarType>& b_in,
742
const CMatrixVectorProduct<ScalarType>& mat_vec, const CPreconditioner<ScalarType>& precond, const CConfig* config) {
743
744
- ScalarType norm_r_in = 0.0, norm0_in = 0.0;
+ // 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;
749
unsigned long ii = 0;
750
751
CSysVector<ScalarType> A_z_i;
0 commit comments