ros / common_msgs

Commonly used messages in ROS. Includes messages for actions (actionlib_msgs), diagnostics (diagnostic_msgs), geometric primitives (geometry_msgs), robot navigation (nav_msgs), and common sensors (sensor_msgs), such as laser range finders, cameras, point clouds.
http://wiki.ros.org/common_msgs
181 stars 190 forks source link

Return default value to prevent missing return warning. #118

Closed iwanders closed 6 years ago

iwanders commented 6 years ago

This addresses #84.

Original suggested fix was to both return the default value and add a ROS_BREAK(), however the latter would require modifying the package dependencies for code is never reached. This fix returns the default value of T to silence warnings when compiling with clang, since this part of the code is never reached the behaviour is identical.

iwanders commented 6 years ago

@tfoote , can you please merge this?