When you are already on fixing warnings, we just learned this week that -Wconversion flag is not set with -Wall – unfortunately the learning was not easy, and we lost a few hours to debugging issues in the tests caused by implicit casting and narrowing types.
I propose to add this here – just to be sure that all castings are used properly – especially since we are converting a lot between doubles and (u)ints.
When you are already on fixing warnings, we just learned this week that
-Wconversion
flag is not set with-Wall
– unfortunately the learning was not easy, and we lost a few hours to debugging issues in the tests caused by implicit casting and narrowing types.I propose to add this here – just to be sure that all castings are used properly – especially since we are converting a lot between doubles and (u)ints.
check here for more details: https://github.com/ros-controls/ros2_control/pull/1053