Ticket #7802: cart_intersect_warning.patch

File cart_intersect_warning.patch, 1.2 KB (added by Andrew Hundt <ATHundt@…>, 10 years ago)

patch to fix cart_intersect_warning, presuming the warning is not due to a bug in the function implementation

  • boost/geometry/strategies/cartesian/cart_intersect.hpp

    
    # HG changeset patch
    # User Andrew Hundt <ahundt@rec.ri.cmu.edu>
    # Date 2012-12-17 20:23:12 -0500
    # Node ID 34328e83a96e7a4af6fabda945284a80f1b180d5
    # Parent  6a0ff2dcf61a4cbadac5192fadca7eb33e30a2fa
    fixed boost/geometry/strategies/cartesian/cart_intersect.hpp:406: warning: unused parameter ‘a’
    and
    fixed boost/geometry/strategies/cartesian/cart_intersect.hpp:406: warning: unused parameter ‘b’
    
    diff --git a/boost/geometry/strategies/cartesian/cart_intersect.hpp b/boost/geometry/strategies/cartesian/cart_intersect.hpp
    a b  
    403403    // It turns out to be no problem, see buffer test #rt_s1 (and there are many cases generated)
    404404    // It generates an "ends in the middle" situation which is correct.
    405405    template <typename T, typename R>
    406     static inline void robustness_handle_meeting(segment_type1 const& a, segment_type2 const& b,
     406    static inline void robustness_handle_meeting(segment_type1 const& /*a*/, segment_type2 const& /*b*/,
    407407                side_info& sides,
    408408                T const& dx_a, T const& dy_a, T const& wx, T const& wy,
    409409                T const& d, R const& r)