pantor / ruckig

Motion Generation for Robots and Machines. Real-time. Jerk-constrained. Time-optimal.
https://ruckig.com
MIT License
634 stars 155 forks source link

Reorder your initialization lists #133

Closed mangoschorle closed 2 years ago

mangoschorle commented 2 years ago

Compilers in strict mode and Werror will fail on initialization lists as (taken from ruckig.hpp)

explicit Ruckig(double delta_time): degrees_of_freedom(DOFs), delta_time(delta_time), max_number_of_waypoints(0) {

This is due to Wreorder, i.e. you should reorder the initialization lists to match the order in the header.

pantor commented 2 years ago

All warnings (Wall) by gcc and clang should be fixed and are now checked by the CI.