From 86438faac04e7d968d2230b368a141a2b4796632 Mon Sep 17 00:00:00 2001 From: hugtalbot Date: Wed, 28 Jan 2026 17:49:08 +0100 Subject: [PATCH] [all] Fix some compilation warnings --- .../component/linearsolver/iterative/MatrixLinearSolver.inl | 2 +- Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Sofa/Component/LinearSolver/Iterative/src/sofa/component/linearsolver/iterative/MatrixLinearSolver.inl b/Sofa/Component/LinearSolver/Iterative/src/sofa/component/linearsolver/iterative/MatrixLinearSolver.inl index 5f6e5cdf599..a13ed4500a7 100644 --- a/Sofa/Component/LinearSolver/Iterative/src/sofa/component/linearsolver/iterative/MatrixLinearSolver.inl +++ b/Sofa/Component/LinearSolver/Iterative/src/sofa/component/linearsolver/iterative/MatrixLinearSolver.inl @@ -49,8 +49,8 @@ MatrixLinearSolver::MatrixLinearSolver() "parallelInverseProduct", "Parallelize the computation of the product J*M^{-1}*J^T " "where M is the matrix of the linear system and J is any " "matrix with compatible dimensions")) - , invertData() , l_linearSystem(initLink("linearSystem", "The linear system to solve")) + , invertData() , d_factorizationInvalidation(initData(&d_factorizationInvalidation, false, "factorizationInvalidation", "Internal data for the detection of cache invalidation of the matrix factorization")) { d_factorizationInvalidation.setReadOnly(true); diff --git a/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h b/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h index 22281f97af2..cc1df95ff66 100644 --- a/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h +++ b/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h @@ -398,7 +398,6 @@ struct SOFA_CORE_API DrawElementMesh p.resize(elementIndices.size() * sofa::geometry::Quad::NumberOfNodes); } - std::size_t renderedPointId {}; for (auto i : elementIndices) { const auto& element = elements[i];