mirror of https://github.com/CGAL/cgal
That bug has been detected by a warning: https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-4.10-Ic-16/Intersections_3/TestReport_lrineau_Ubuntu-latest-GCC6-CXX1z.gz ``` /mnt/testsuite/include/CGAL/Intersections_3/intersection_3_1_impl.h: In function 'typename CGAL::Intersection_traits<K, typename K::Plane_3, typename K::Segment_3>::result_type CGAL::internal::intersection(const typename K::Plane_3&, const typename K::Segment_3&, const K&) [with K = CGAL::Simple_cartesian<CGAL::Gmpq>]': /mnt/testsuite/include/CGAL/Intersections_3/intersection_3_1_impl.h:1105:13: warning: this statement may fall through [-Wimplicit-fallthrough] } ^ /mnt/testsuite/include/CGAL/Intersections_3/intersection_3_1_impl.h:1107:9: note: here case ON_NEGATIVE_SIDE: ^~~~ /mnt/testsuite/include/CGAL/Intersections_3/intersection_3_1_impl.h:1071:9: warning: this statement may fall through [-Wimplicit-fallthrough] switch (target_side) { ^~~~~~ /mnt/testsuite/include/CGAL/Intersections_3/intersection_3_1_impl.h:1090:5: note: here case ON_NEGATIVE_SIDE: ^~~~ ``` Now, the incorrect fallthrough is replaced by the return of the empty set. |
||
|---|---|---|
| .. | ||
| Intersections_3 | ||
| internal/Intersections_3 | ||
| Intersection_traits_3.h | ||
| Triangle_3_Line_3_do_intersect.h | ||
| Triangle_3_Plane_3_do_intersect.h | ||
| Triangle_3_Point_3_do_intersect.h | ||
| Triangle_3_Ray_3_do_intersect.h | ||
| Triangle_3_Segment_3_do_intersect.h | ||
| Triangle_3_Tetrahedron_3_do_intersect.h | ||
| Triangle_3_Triangle_3_do_intersect.h | ||
| Triangle_3_Triangle_3_intersection.h | ||
| bbox_intersection_3.h | ||
| intersection_3.h | ||
| intersection_3_1.h | ||
| intersections.h | ||