From 9fa318c6f0a5c36276e9861dc8cfc9d1ae77a1aa Mon Sep 17 00:00:00 2001 From: Michael Hemmer Date: Wed, 11 Nov 2020 16:56:37 +0100 Subject: [PATCH] Update test_sls_offset.cpp Avoid unused variable in opt mode. --- .../test/Straight_skeleton_2/test_sls_offset.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Straight_skeleton_2/test/Straight_skeleton_2/test_sls_offset.cpp b/Straight_skeleton_2/test/Straight_skeleton_2/test_sls_offset.cpp index ddeabc98860..240bc06ab49 100644 --- a/Straight_skeleton_2/test/Straight_skeleton_2/test_sls_offset.cpp +++ b/Straight_skeleton_2/test/Straight_skeleton_2/test_sls_offset.cpp @@ -909,8 +909,10 @@ void test_offset(const char* filename) // for(const auto& offp : offset_poly_with_holes) // print_polygon_with_holes(*offp); CGAL::set_use_polygon_assertions(false); - for(const auto& offp : offset_poly_with_holes) + for(const auto& offp : offset_poly_with_holes){ + (void)offp; assert(offp->outer_boundary().is_counterclockwise_oriented()); + } CGAL::set_use_polygon_assertions(true); #ifdef CGAL_SLS_TEST_SPEED_THINGS_UP_FOR_THE_TESTSUITE if(i > 2)