From e3aad4d0791e80782deb362f918a94e95ddbce1a Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 26 Jun 2013 14:49:03 +0200 Subject: [PATCH] Fix warnings --- Mesh_3/include/CGAL/Mesh_3/Dump_c3t3.h | 2 +- .../Mesh_3/Robust_intersection_traits_3.h | 2 +- .../Mesh_domain_with_polyline_features_3.h | 24 +++++++++---------- .../Mesh_3/test_meshing_polylines_only.cpp | 4 ++++ 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/Dump_c3t3.h b/Mesh_3/include/CGAL/Mesh_3/Dump_c3t3.h index 5f0f6c205ac..9355bb5a46c 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Dump_c3t3.h +++ b/Mesh_3/include/CGAL/Mesh_3/Dump_c3t3.h @@ -55,7 +55,7 @@ struct Dump_c3t3 { template struct Dump_c3t3 { - void dump_c3t3(const C3t3& c3t3, std::string prefix) { + void dump_c3t3(const C3t3&, std::string) { std::cerr << "Warning " << __FILE__ << ":" << __LINE__ << "\n" << " the c3t3 object cannot be dumped because some types are" << " not streamable:\n"; diff --git a/Mesh_3/include/CGAL/Mesh_3/Robust_intersection_traits_3.h b/Mesh_3/include/CGAL/Mesh_3/Robust_intersection_traits_3.h index 5fb85358965..a82a90af324 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Robust_intersection_traits_3.h +++ b/Mesh_3/include/CGAL/Mesh_3/Robust_intersection_traits_3.h @@ -192,7 +192,7 @@ typename K::Point_3 lp_intersection(const typename K::Point_3& p, const typename K::Point_3& q, const typename K::Point_3& a, const typename K::Point_3& b, const typename K::Point_3& c, - const K & k) + const K &) { CGAL_MESH_3_PROFILER(std::string(CGAL_PRETTY_FUNCTION)); typedef Exact_predicates_exact_constructions_kernel EPEC; diff --git a/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h b/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h index 9530302172b..1dc92d688e5 100644 --- a/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h +++ b/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h @@ -824,13 +824,13 @@ Display_incidences_to_curves_aux:: operator()(std::ostream& os, typename MDwPF_::Curve_segment_index id, const Container2& corners_tmp_incidences_of_id) const { - std::cerr << "Corner #" << id << " is incident to the following curves: {"; + os << "Corner #" << id << " is incident to the following curves: {"; BOOST_FOREACH(typename MDwPF_::Curve_segment_index curve_index, corners_tmp_incidences_of_id) { - std::cerr << " " << curve_index; + os << " " << curve_index; } - std::cerr << " }\n"; + os << " }\n"; } template @@ -841,9 +841,9 @@ Display_incidences_to_curves_aux:: operator()(std::ostream& os, typename MDwPF_::Curve_segment_index id, const Container2& corners_tmp_incidences_of_id) const { - std::cerr << "Corner #" << id << " is incident to " - << corners_tmp_incidences_of_id .size() - << " curve(s).\n"; + os << "Corner #" << id << " is incident to " + << corners_tmp_incidences_of_id .size() + << " curve(s).\n"; } template @@ -854,13 +854,13 @@ Display_incidences_to_patches_aux:: operator()(std::ostream& os, typename MDwPF_::Curve_segment_index id, const Container& corners_incidences_of_id) const { - std::cerr << "Corner #" << id << " is incident to the following patches: {"; + os << "Corner #" << id << " is incident to the following patches: {"; BOOST_FOREACH(typename MDwPF_::Surface_patch_index i, corners_incidences_of_id) { - std::cerr << " " << i; + os << " " << i; } - std::cerr << " }\n"; + os << " }\n"; } template @@ -871,9 +871,9 @@ Display_incidences_to_patches_aux:: operator()(std::ostream& os, typename MDwPF_::Curve_segment_index id, const Container& corners_incidences_id) const { - std::cerr << "Corner #" << id << " is incident to " - << corners_incidences_id.size() - << " surface patch(es).\n"; + os << "Corner #" << id << " is incident to " + << corners_incidences_id.size() + << " surface patch(es).\n"; } }} // end namespaces internal::Mesh_3:: and internal:: diff --git a/Mesh_3/test/Mesh_3/test_meshing_polylines_only.cpp b/Mesh_3/test/Mesh_3/test_meshing_polylines_only.cpp index 0e4ba0ded71..d547e597ee4 100644 --- a/Mesh_3/test/Mesh_3/test_meshing_polylines_only.cpp +++ b/Mesh_3/test/Mesh_3/test_meshing_polylines_only.cpp @@ -31,6 +31,10 @@ using namespace CGAL::parameters; int main(int argc, char** argv) { + if(argc != 2) { + std::cerr << "This test needs a filename as argument.\n"; + return 1; + } typedef K::Point_3 Point; // Create domain