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. |
||
|---|---|---|
| .. | ||
| include/CGAL | ||
| package_info/Intersections_3 | ||
| test/Intersections_3 | ||