fix various irksome compiler warnings

libeigen/eigen!2280
This commit is contained in:
Charles Schlosser
2026-03-12 04:01:20 +00:00
committed by Rasmus Munk Larsen
parent 2a2456c873
commit 875fb48f0a
3 changed files with 1 additions and 3 deletions

View File

@@ -21,7 +21,6 @@ void linearStructure(const MatrixType& m) {
CwiseUnaryOp.h, CwiseBinaryOp.h, SelfCwiseBinaryOp.h CwiseUnaryOp.h, CwiseBinaryOp.h, SelfCwiseBinaryOp.h
*/ */
typedef typename MatrixType::Scalar Scalar; typedef typename MatrixType::Scalar Scalar;
typedef typename MatrixType::RealScalar RealScalar;
Index rows = m.rows(); Index rows = m.rows();
Index cols = m.cols(); Index cols = m.cols();

View File

@@ -207,7 +207,6 @@ void testMatrixType(const MatrixType& m) {
const Index rows = m.rows(); const Index rows = m.rows();
const Index cols = m.cols(); const Index cols = m.cols();
typedef typename MatrixType::Scalar Scalar; typedef typename MatrixType::Scalar Scalar;
typedef typename MatrixType::RealScalar RealScalar;
Scalar s1 = internal::random<Scalar>(); Scalar s1 = internal::random<Scalar>();

View File

@@ -115,7 +115,7 @@ void evalSolverSugarFunction(const POLYNOMIAL& pols, const ROOTS& roots, const R
for (size_t i = 0; i < calc_realRoots.size(); ++i) { for (size_t i = 0; i < calc_realRoots.size(); ++i) {
bool found = false; bool found = false;
for (size_t j = 0; j < real_roots.size() && !found; ++j) { for (Index j = 0; j < real_roots.size() && !found; ++j) {
if (internal::isApprox(calc_realRoots[i], real_roots[j], psPrec)) { if (internal::isApprox(calc_realRoots[i], real_roots[j], psPrec)) {
found = true; found = true;
} }