From fdbbb776bc5b84e8ed8055e7995a51a79fc9d672 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 10 Sep 2025 16:08:52 +0200 Subject: [PATCH] disable Check_FPU_rounding_mode_is_restored on demand --- Number_types/include/CGAL/test_FPU_rounding_mode_impl.h | 2 ++ Number_types/test/Number_types/Interval_nt_new.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/Number_types/include/CGAL/test_FPU_rounding_mode_impl.h b/Number_types/include/CGAL/test_FPU_rounding_mode_impl.h index 0107cc32b1a..60efe1be2c6 100644 --- a/Number_types/include/CGAL/test_FPU_rounding_mode_impl.h +++ b/Number_types/include/CGAL/test_FPU_rounding_mode_impl.h @@ -51,11 +51,13 @@ get_static_check_fpu_rounding_mode_is_restored() return check_fpu_rounding_mode_is_restored; } +#ifndef CGAL_DISABLE_ROUNDING_MATH_CHECK namespace { CGAL_UNUSED const Check_FPU_rounding_mode_is_restored & check_fpu_rounding_mode_is_restored = get_static_check_fpu_rounding_mode_is_restored(); } +#endif #else diff --git a/Number_types/test/Number_types/Interval_nt_new.cpp b/Number_types/test/Number_types/Interval_nt_new.cpp index 0b4e7b06495..8bb553a4076 100644 --- a/Number_types/test/Number_types/Interval_nt_new.cpp +++ b/Number_types/test/Number_types/Interval_nt_new.cpp @@ -1,3 +1,4 @@ +#define CGAL_DISABLE_ROUNDING_MATH_CHECK 1 #include #include #include