From 58ae1c521b1ac09d0d1043b633dd8bbd3a63e2e3 Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Tue, 19 Feb 2019 16:08:55 +0200 Subject: [PATCH] Guarded local variable used only in DEBUG mode --- .../CGAL/Boolean_set_operations_2/Gps_traits_adaptor.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_traits_adaptor.h b/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_traits_adaptor.h index 5a16978c374..44aca4afa02 100644 --- a/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_traits_adaptor.h +++ b/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_traits_adaptor.h @@ -141,8 +141,9 @@ public: Comparison_result res_from_new_into = cmp_y_at_x_right(*from_leftmost, *new_into_leftmost, leftmost_v); - Comparison_result res_into_new_from = - cmp_y_at_x_right(*into_leftmost, *new_from_leftmost, leftmost_v); + CGAL_assertion_code + (Comparison_result res_into_new_from = + cmp_y_at_x_right(*into_leftmost, *new_from_leftmost, leftmost_v)); CGAL_assertion((res_from_new_into != EQUAL) && (res_from_new_into != res_into_new_from)); Comparison_result res_into_from =