From e2f018d311fbb93a741bde4851f9dc576158a299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Or=C5=A1uli=C4=87?= Date: Fri, 3 Nov 2017 10:56:06 +0100 Subject: [PATCH] Fix debug build. (#570) --- .../cartographer_ros/ros_map_writing_points_processor.cc | 3 +++ 1 file changed, 3 insertions(+) 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