Slamtec / rplidar_ros

BSD 2-Clause "Simplified" License
485 stars 527 forks source link

warning:编译警告 #113

Closed deyouslamtec closed 1 year ago

deyouslamtec commented 1 year ago

rplidar_ros:ros2 编译时有个警告,有数组访问越界的风险 There is a warning when compiling, there is a risk of array access out of bounds rplidar_ros/sdk/src/sl_lidar_driver.cpp:178:31: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits] 178 | for (i = count - 1; i >= 0; i--) { |