Commit 8e83db40 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

fix compilation warnings

parent 6ecfffbc
Pipeline #6097 passed with stage
in 25 minutes and 59 seconds
......@@ -69,7 +69,7 @@ namespace curves
// Serialization of the class
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive& ar, const unsigned int version){
void serialize(Archive& /*ar*/, const unsigned int version){
if (version) {
// Do something depending on version ?
}
......
......@@ -538,6 +538,7 @@ namespace curves
.def("__call__", &bernstein_t::operator())
;
/** END bernstein polynomial**/
/** BEGIN curves conversion**/
def("polynomial_from_bezier", polynomial_from_curve<polynomial_t,bezier_t>);
def("polynomial_from_hermite", polynomial_from_curve<polynomial_t,cubic_hermite_spline_t>);
......
......@@ -1420,7 +1420,7 @@ void piecewiseCurveConversionFromDiscretePointsTest(bool& error)
double timestep = (T_max-T_min)/double(points.size()-1);
std::vector<double> time_points;
for(size_t i=0;i<points.size();++i)
time_points.push_back(T_min+i*timestep);
time_points.push_back(T_min+double(i)*timestep);
piecewise_polynomial_curve_t ppc = piecewise_polynomial_curve_t::
convert_discrete_points_to_polynomial<polynomial_t>(points,time_points);
if (!ppc.is_continuous(0))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment