From 2ea729b520fc4491903d5259370adba1adff5ed0 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Sun, 24 Dec 2017 05:05:30 +0100 Subject: [PATCH] [algorithms][strategies][util] Fix unused parameter warnings. --- .../boost/geometry/algorithms/detail/overlay/follow.hpp | 3 ++- .../algorithms/detail/overlay/handle_self_turns.hpp | 3 ++- .../geometry/algorithms/detail/overlay/is_self_turn.hpp | 7 ++++--- .../strategies/spherical/point_in_poly_winding.hpp | 7 +++---- .../geometry/util/normalize_spheroidal_coordinates.hpp | 4 +++- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/include/boost/geometry/algorithms/detail/overlay/follow.hpp b/include/boost/geometry/algorithms/detail/overlay/follow.hpp index 4a5993ea3..d948c4f67 100644 --- a/include/boost/geometry/algorithms/detail/overlay/follow.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/follow.hpp @@ -1,6 +1,7 @@ // Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2014 Barend Gehrels, Amsterdam, the Netherlands. +// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland. // This file was modified by Oracle on 2014, 2017. // Modifications copyright (c) 2014-2017 Oracle and/or its affiliates. @@ -59,7 +60,7 @@ template typename Polygon, typename PtInPolyStrategy > -static inline bool last_covered_by(Turn const& turn, Operation const& op, +static inline bool last_covered_by(Turn const& /*turn*/, Operation const& op, LineString const& linestring, Polygon const& polygon, PtInPolyStrategy const& strategy) { diff --git a/include/boost/geometry/algorithms/detail/overlay/handle_self_turns.hpp b/include/boost/geometry/algorithms/detail/overlay/handle_self_turns.hpp index be471fc8d..af5bc02ac 100644 --- a/include/boost/geometry/algorithms/detail/overlay/handle_self_turns.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/handle_self_turns.hpp @@ -1,6 +1,7 @@ // Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2017 Barend Gehrels, Amsterdam, the Netherlands. +// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at @@ -74,7 +75,7 @@ struct discard_closed_turns template static inline - void apply(Turns& turns, Clusters const& clusters, + void apply(Turns& turns, Clusters const& /*clusters*/, Geometry0 const& geometry0, Geometry1 const& geometry1) { typedef typename boost::range_value::type turn_type; diff --git a/include/boost/geometry/algorithms/detail/overlay/is_self_turn.hpp b/include/boost/geometry/algorithms/detail/overlay/is_self_turn.hpp index 9423a24b3..05cfd9c8d 100644 --- a/include/boost/geometry/algorithms/detail/overlay/is_self_turn.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/is_self_turn.hpp @@ -1,6 +1,7 @@ // Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2017-2017 Barend Gehrels, Amsterdam, the Netherlands. +// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at @@ -34,7 +35,7 @@ template <> struct is_self_turn_check { template - static inline bool apply(Turn const& turn) + static inline bool apply(Turn const& /*turn*/) { return false; } @@ -44,7 +45,7 @@ template <> struct is_self_turn_check { template - static inline bool apply(Turn const& turn) + static inline bool apply(Turn const& /*turn*/) { return false; } @@ -54,7 +55,7 @@ template <> struct is_self_turn_check { template - static inline bool apply(Turn const& turn) + static inline bool apply(Turn const& /*turn*/) { return false; } diff --git a/include/boost/geometry/strategies/spherical/point_in_poly_winding.hpp b/include/boost/geometry/strategies/spherical/point_in_poly_winding.hpp index 0f1a901d1..c942cbe46 100644 --- a/include/boost/geometry/strategies/spherical/point_in_poly_winding.hpp +++ b/include/boost/geometry/strategies/spherical/point_in_poly_winding.hpp @@ -1,7 +1,7 @@ // Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. -// Copyright (c) 2013 Adam Wulkiewicz, Lodz, Poland. +// Copyright (c) 2013-2017 Adam Wulkiewicz, Lodz, Poland. // This file was modified by Oracle on 2013, 2014, 2016, 2017. // Modifications copyright (c) 2013-2017 Oracle and/or its affiliates. @@ -169,7 +169,7 @@ public: int side = 0; if (ci.count == 1 || ci.count == -1) { - side = side_equal(point, eq1 ? s1 : s2, ci, s1, s2); + side = side_equal(point, eq1 ? s1 : s2, ci); } else // count == 2 || count == -2 { @@ -431,8 +431,7 @@ private: // but the point is not aligned with a vertical segment inline int side_equal(Point const& point, PointOfSegment const& se, - count_info const& ci, - PointOfSegment const& s1, PointOfSegment const& s2) const + count_info const& ci) const { typedef typename coordinate_type::type scoord_t; typedef typename coordinate_system::type::units units_t; diff --git a/include/boost/geometry/util/normalize_spheroidal_coordinates.hpp b/include/boost/geometry/util/normalize_spheroidal_coordinates.hpp index eaa686ed1..785e52a0d 100644 --- a/include/boost/geometry/util/normalize_spheroidal_coordinates.hpp +++ b/include/boost/geometry/util/normalize_spheroidal_coordinates.hpp @@ -1,5 +1,7 @@ // Boost.Geometry (aka GGL, Generic Geometry Library) +// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland. + // Copyright (c) 2015-2017, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle @@ -198,7 +200,7 @@ template struct latitude_convert_if_polar { template - static inline void apply(T & lat) {} + static inline void apply(T & /*lat*/) {} }; template