From 875fb48f0aa1669ecb85daf776d02cfffb52f381 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Thu, 12 Mar 2026 04:01:20 +0000 Subject: [PATCH] fix various irksome compiler warnings libeigen/eigen!2280 --- test/linearstructure.cpp | 1 - test/nullary.cpp | 1 - unsupported/test/polynomialsolver.cpp | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp index 80cf4c331..404b4319c 100644 --- a/test/linearstructure.cpp +++ b/test/linearstructure.cpp @@ -21,7 +21,6 @@ void linearStructure(const MatrixType& m) { CwiseUnaryOp.h, CwiseBinaryOp.h, SelfCwiseBinaryOp.h */ typedef typename MatrixType::Scalar Scalar; - typedef typename MatrixType::RealScalar RealScalar; Index rows = m.rows(); Index cols = m.cols(); diff --git a/test/nullary.cpp b/test/nullary.cpp index 71cf9cbea..1f78287c7 100644 --- a/test/nullary.cpp +++ b/test/nullary.cpp @@ -207,7 +207,6 @@ void testMatrixType(const MatrixType& m) { const Index rows = m.rows(); const Index cols = m.cols(); typedef typename MatrixType::Scalar Scalar; - typedef typename MatrixType::RealScalar RealScalar; Scalar s1 = internal::random(); diff --git a/unsupported/test/polynomialsolver.cpp b/unsupported/test/polynomialsolver.cpp index 1d43f928e..18d5a2efc 100644 --- a/unsupported/test/polynomialsolver.cpp +++ b/unsupported/test/polynomialsolver.cpp @@ -115,7 +115,7 @@ void evalSolverSugarFunction(const POLYNOMIAL& pols, const ROOTS& roots, const R for (size_t i = 0; i < calc_realRoots.size(); ++i) { 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)) { found = true; }