diff --git a/cartographer_ros/cartographer_ros/ros_map_writing_points_processor.cc b/cartographer_ros/cartographer_ros/ros_map_writing_points_processor.cc index 4f416c0..c4f8770 100644 --- a/cartographer_ros/cartographer_ros/ros_map_writing_points_processor.cc +++ b/cartographer_ros/cartographer_ros/ros_map_writing_points_processor.cc @@ -119,6 +119,9 @@ RosMapWritingPointsProcessor::Flush() { return FlushResult::kFinished; } LOG(FATAL); + // The following unreachable return statement is needed to avoid a GCC bug + // described at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81508 + return FlushResult::kFinished; } } // namespace cartographer_ros