diff --git a/include/boost/geometry/algorithms/correct.hpp b/include/boost/geometry/algorithms/correct.hpp index 39249e7de..bde4f9fb4 100644 --- a/include/boost/geometry/algorithms/correct.hpp +++ b/include/boost/geometry/algorithms/correct.hpp @@ -131,13 +131,13 @@ struct correct_ring { // check if closed, if not, close it bool const disjoint = geometry::disjoint(*boost::begin(r), *(boost::end(r) - 1)); - closure_selector const s = geometry::closure::value; + closure_selector /*const*/ s = geometry::closure::value; if (disjoint && (s == closed)) { geometry::append(r, *boost::begin(r)); } - if (! disjoint && geometry::closure::value != closed) + if (! disjoint && s != closed) { // Open it by removing last point geometry::traits::resize::apply(r, boost::size(r) - 1); diff --git a/include/boost/geometry/algorithms/detail/overlay/get_turns.hpp b/include/boost/geometry/algorithms/detail/overlay/get_turns.hpp index 26629043c..73d72f9d2 100644 --- a/include/boost/geometry/algorithms/detail/overlay/get_turns.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/get_turns.hpp @@ -14,12 +14,11 @@ #include #include +#include #include #include #include -#include - #include #include #include @@ -138,6 +137,11 @@ class get_turns_in_sections // About first condition: will be optimized by compiler (static) // It checks if it is areal (box,ring,(multi)polygon int const n = int(section.range_count); + + boost::ignore_unused_variable_warning(n); + boost::ignore_unused_variable_warning(index1); + boost::ignore_unused_variable_warning(index2); + return boost::is_same < typename tag_cast @@ -162,6 +166,8 @@ public : Turns& turns, InterruptPolicy& interrupt_policy) { + boost::ignore_unused_variable_warning(interrupt_policy); + cview_type1 cview1(range_by_section(geometry1, sec1)); cview_type2 cview2(range_by_section(geometry2, sec2)); view_type1 view1(cview1); @@ -599,6 +605,8 @@ private: Turns& turns, InterruptPolicy& interrupt_policy) { + boost::ignore_unused_variable_warning(interrupt_policy); + // Depending on code some relations can be left out typedef typename boost::range_value::type turn_info; diff --git a/include/boost/geometry/algorithms/distance.hpp b/include/boost/geometry/algorithms/distance.hpp index c5a65ba15..0fd5c43f4 100644 --- a/include/boost/geometry/algorithms/distance.hpp +++ b/include/boost/geometry/algorithms/distance.hpp @@ -15,6 +15,7 @@ #define BOOST_GEOMETRY_ALGORITHMS_DISTANCE_HPP +#include #include #include #include @@ -55,6 +56,7 @@ struct point_to_point static inline typename return_type::type apply(P1 const& p1, P2 const& p2, Strategy const& strategy) { + boost::ignore_unused_variable_warning(strategy); return strategy.apply(p1, p2); } }; diff --git a/include/boost/geometry/algorithms/length.hpp b/include/boost/geometry/algorithms/length.hpp index 4804869ea..2051e41a9 100644 --- a/include/boost/geometry/algorithms/length.hpp +++ b/include/boost/geometry/algorithms/length.hpp @@ -16,6 +16,7 @@ #include +#include #include #include @@ -84,6 +85,7 @@ struct range_length static inline return_type apply( Range const& range, Strategy const& strategy) { + boost::ignore_unused_variable_warning(strategy); typedef typename closeable_view::type view_type; typedef typename boost::range_iterator < diff --git a/include/boost/geometry/algorithms/num_points.hpp b/include/boost/geometry/algorithms/num_points.hpp index ca791a306..77c53d65d 100644 --- a/include/boost/geometry/algorithms/num_points.hpp +++ b/include/boost/geometry/algorithms/num_points.hpp @@ -48,7 +48,7 @@ struct range_count std::size_t n = boost::size(range); if (add_for_open && n > 0) { - closure_selector const s = geometry::closure::value; + closure_selector /*const*/ s = geometry::closure::value; if (s == open) { diff --git a/include/boost/geometry/algorithms/within.hpp b/include/boost/geometry/algorithms/within.hpp index f1f0993d7..b024bd9fa 100644 --- a/include/boost/geometry/algorithms/within.hpp +++ b/include/boost/geometry/algorithms/within.hpp @@ -17,6 +17,7 @@ #include +#include #include #include @@ -65,6 +66,7 @@ struct point_in_ring static inline int apply(Point const& point, Ring const& ring, Strategy const& strategy) { + boost::ignore_unused_variable_warning(strategy); if (int(boost::size(ring)) < core_detail::closure::minimum_ring_size::value) { @@ -180,6 +182,7 @@ struct within template static inline bool apply(Point const& point, Box const& box, Strategy const& strategy) { + boost::ignore_unused_variable_warning(strategy); return strategy.apply(point, box); } }; @@ -191,6 +194,7 @@ struct within static inline bool apply(Box1 const& box1, Box2 const& box2, Strategy const& strategy) { assert_dimension_equal(); + boost::ignore_unused_variable_warning(strategy); return strategy.apply(box1, box2); } }; diff --git a/include/boost/geometry/extensions/io/svg/write_svg.hpp b/include/boost/geometry/extensions/io/svg/write_svg.hpp index 3cc2cdae2..078521268 100644 --- a/include/boost/geometry/extensions/io/svg/write_svg.hpp +++ b/include/boost/geometry/extensions/io/svg/write_svg.hpp @@ -57,7 +57,7 @@ struct svg_box { template static inline void apply(std::basic_ostream& os, - Box const& box, std::string const& style, int size) + Box const& box, std::string const& style, int ) { // Prevent invisible boxes, making them >=1, using "max" BOOST_USING_STD_MAX(); @@ -86,7 +86,7 @@ struct svg_range { template static inline void apply(std::basic_ostream& os, - Range const& range, std::string const& style, int size) + Range const& range, std::string const& style, int ) { typedef typename boost::range_iterator::type iterator; @@ -114,7 +114,7 @@ struct svg_poly { template static inline void apply(std::basic_ostream& os, - Polygon const& polygon, std::string const& style, int size) + Polygon const& polygon, std::string const& style, int ) { typedef typename geometry::ring_type::type ring_type; typedef typename boost::range_iterator::type iterator_type; diff --git a/include/boost/geometry/policies/relate/intersection_points.hpp b/include/boost/geometry/policies/relate/intersection_points.hpp index d7d519905..1e67a5cb8 100644 --- a/include/boost/geometry/policies/relate/intersection_points.hpp +++ b/include/boost/geometry/policies/relate/intersection_points.hpp @@ -46,8 +46,8 @@ struct segments_intersection_points static inline return_type segments_intersect(side_info const&, R const& r, coordinate_type const& dx1, coordinate_type const& dy1, - coordinate_type const& dx2, coordinate_type const& dy2, - S1 const& s1, S2 const& s2) + coordinate_type const& , coordinate_type const& , + S1 const& s1, S2 const& ) { typedef typename geometry::coordinate_type < diff --git a/include/boost/geometry/strategies/cartesian/cart_intersect.hpp b/include/boost/geometry/strategies/cartesian/cart_intersect.hpp index 564010f0a..678e9d7c2 100644 --- a/include/boost/geometry/strategies/cartesian/cart_intersect.hpp +++ b/include/boost/geometry/strategies/cartesian/cart_intersect.hpp @@ -215,7 +215,7 @@ struct relate_cartesian_segments return Policy::disjoint(); } - robustness_handle_meeting(a, b, sides, dx_a, dy_a, wx, wy, d, r); + //robustness_handle_meeting(a, b, sides, dx_a, dy_a, wx, wy, d, r); if (robustness_verify_disjoint_at_one_collinear(a, b, sides)) { @@ -295,7 +295,7 @@ private : } static inline void robustness_verify_collinear( - segment_type1 const& a, segment_type2 const& b, + segment_type1 const& , segment_type2 const& , bool a_is_point, bool b_is_point, side_info& sides, bool& collinear) @@ -413,7 +413,7 @@ private : return false; } - +/* // If r is one, or zero, segments should meet and their endpoints. // Robustness issue: check if this is really the case. // It turns out to be no problem, see buffer test #rt_s1 (and there are many cases generated) @@ -447,7 +447,7 @@ private : } } } - +*/ template static inline bool verify_disjoint(segment_type1 const& a, segment_type2 const& b) diff --git a/include/boost/geometry/strategies/cartesian/distance_projected_point.hpp b/include/boost/geometry/strategies/cartesian/distance_projected_point.hpp index 13d416844..9cff4d8af 100644 --- a/include/boost/geometry/strategies/cartesian/distance_projected_point.hpp +++ b/include/boost/geometry/strategies/cartesian/distance_projected_point.hpp @@ -162,6 +162,7 @@ public : < Strategy, Point, fp_point_type >::apply(strategy); + boost::ignore_unused_variable_warning(fp_strategy); fp_point_type projected; geometry::convert(p1, projected);