From 7e6868ffd6310ba8c8be3c05d66c66f4f5717e99 Mon Sep 17 00:00:00 2001 From: Stephan Hageboeck Date: Fri, 26 Jun 2026 16:05:24 +0200 Subject: [PATCH] [math] Fix a debian build failure with -Werror --- math/minuit2/test/testMinuit2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/math/minuit2/test/testMinuit2.cxx b/math/minuit2/test/testMinuit2.cxx index 9a50b6140350e..7f3624f15e74c 100644 --- a/math/minuit2/test/testMinuit2.cxx +++ b/math/minuit2/test/testMinuit2.cxx @@ -405,8 +405,9 @@ TEST(Minuit2, AnalyticalHessianLimitTransformation) // magnitude, and dropping the curvature term changes them by ~100%. const double tol = 1e-3 * std::max(std::abs(fd), 1.0); EXPECT_NEAR(hAnalytic(i, j), fd, tol) << "Hessian mismatch at (" << i << "," << j << ")"; - if (i == j) + if (i == j) { EXPECT_NEAR(g2Analytic(i), fd, tol) << "G2 mismatch at " << i; + } } } }