From 2cec4e33c391e2da90403e3706e9fadd6c414dec Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 6 Aug 2012 15:32:55 +0000 Subject: [PATCH] WARNFIX Fix the unused parameter Q2 of function intersection_test_edge() in . Fix also a set-by-unused variable in . --- .../Intersections_2/Triangle_2_Triangle_2_intersection_impl.h | 4 ++-- .../include/CGAL/Triangle_2_Triangle_2_do_intersect.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Intersections_2/include/CGAL/Intersections_2/Triangle_2_Triangle_2_intersection_impl.h b/Intersections_2/include/CGAL/Intersections_2/Triangle_2_Triangle_2_intersection_impl.h index 89bcc1a8039..153389f81e6 100644 --- a/Intersections_2/include/CGAL/Intersections_2/Triangle_2_Triangle_2_intersection_impl.h +++ b/Intersections_2/include/CGAL/Intersections_2/Triangle_2_Triangle_2_intersection_impl.h @@ -120,8 +120,8 @@ void _cut_off(Pointlist_2_ &list, last->next = newrec; newrec->side = ON_ORIENTED_BOUNDARY; Line_2_Line_2_pair linepair(&cutter, &l); - typename Line_2_Line_2_pair::Intersection_results isr; - isr = linepair.intersection_type(); + CGAL_kernel_assertion_code(typename Line_2_Line_2_pair::Intersection_results isr =) + linepair.intersection_type(); CGAL_kernel_assertion(isr == Line_2_Line_2_pair::POINT); newrec->point = linepair.intersection_point(); } diff --git a/Intersections_2/include/CGAL/Triangle_2_Triangle_2_do_intersect.h b/Intersections_2/include/CGAL/Triangle_2_Triangle_2_do_intersect.h index 2ba8d047649..401593d71d4 100644 --- a/Intersections_2/include/CGAL/Triangle_2_Triangle_2_do_intersect.h +++ b/Intersections_2/include/CGAL/Triangle_2_Triangle_2_do_intersect.h @@ -76,7 +76,8 @@ bool intersection_test_edge(const typename K::Point_2 * P1, const typename K::Point_2 * Q1, const typename K::Point_2 * R1, const typename K::Point_2 * P2, - const typename K::Point_2 * Q2, + const typename K::Point_2 * + CGAL_kernel_precondition_code(Q2), const typename K::Point_2 * R2, const K & k ){