From 13abb37721fbade82e597e3645e11ce05bedd4b6 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 31 Jan 2012 23:18:17 +0100 Subject: shutup floating point underflow warning for this specific unit test --- test/jacobisvd.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/jacobisvd.cpp') diff --git a/test/jacobisvd.cpp b/test/jacobisvd.cpp index fb44dae95..3012fbe75 100644 --- a/test/jacobisvd.cpp +++ b/test/jacobisvd.cpp @@ -254,9 +254,17 @@ void jacobisvd_inf_nan() // matrices containing denormal numbers. void jacobisvd_bug286() { +#if defined __INTEL_COMPILER +// shut up warning #239: floating point underflow +#pragma warning push +#pragma warning disable 239 +#endif Matrix2d M; M << -7.90884e-313, -4.94e-324, 0, 5.60844e-313; +#if defined __INTEL_COMPILER +#pragma warning pop +#endif JacobiSVD svd; svd.compute(M); // just check we don't loop indefinitely } -- cgit v1.2.3