mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-01 08:32:10 +00:00
[algorithms][formulas][strategies] Fix unused variable warnings.
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
// Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
|
||||
|
||||
// This file was modified by Oracle on 2015-2017.
|
||||
// Modifications copyright (c) 2015-2017, Oracle and/or its affiliates.
|
||||
// This file was modified by Oracle on 2015-2018.
|
||||
// Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
|
||||
|
||||
// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
|
||||
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <cstddef>
|
||||
#include <utility>
|
||||
|
||||
#include <boost/core/ignore_unused.hpp>
|
||||
#include <boost/numeric/conversion/cast.hpp>
|
||||
|
||||
#include <boost/geometry/core/assert.hpp>
|
||||
@@ -163,6 +164,7 @@ private:
|
||||
{
|
||||
// coordinates are assumed to be in radians
|
||||
BOOST_GEOMETRY_ASSERT(lon1 <= lon2);
|
||||
boost::ignore_unused(lon1, lon2);
|
||||
|
||||
CalculationType lat1_rad = math::as_radian<Units>(lat1);
|
||||
CalculationType lat2_rad = math::as_radian<Units>(lat2);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Boost.Geometry
|
||||
|
||||
// Copyright (c) 2016-2017 Oracle and/or its affiliates.
|
||||
// Copyright (c) 2016-2018 Oracle and/or its affiliates.
|
||||
|
||||
// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
|
||||
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||
@@ -337,13 +337,13 @@ class vertex_longitude<CT, cartesian_tag>
|
||||
{
|
||||
public :
|
||||
template <typename Strategy>
|
||||
static inline CT apply(CT& lon1,
|
||||
CT& lat1,
|
||||
static inline CT apply(CT& /*lon1*/,
|
||||
CT& /*lat1*/,
|
||||
CT& lon2,
|
||||
CT& lat2,
|
||||
CT const& vertex_lat,
|
||||
CT& alp1,
|
||||
Strategy const& azimuth_strategy)
|
||||
CT& /*lat2*/,
|
||||
CT const& /*vertex_lat*/,
|
||||
CT& /*alp1*/,
|
||||
Strategy const& /*azimuth_strategy*/)
|
||||
{
|
||||
return lon2;
|
||||
}
|
||||
|
||||
@@ -541,7 +541,7 @@ private:
|
||||
|
||||
template <typename Point1, typename Point2, typename Vec3d, typename Plane, typename CalcT>
|
||||
static inline bool calculate_collinear_data(Point1 const& a1, Point1 const& a2, // in
|
||||
Point2 const& b1, Point2 const& b2, // in
|
||||
Point2 const& b1, Point2 const& /*b2*/, // in
|
||||
Vec3d const& a1v, // in
|
||||
Vec3d const& a2v, // in
|
||||
Plane const& plane1, // in
|
||||
|
||||
Reference in New Issue
Block a user