From bd428df38fc0c03d36364f59b5261869af678abf Mon Sep 17 00:00:00 2001 From: Michael Grupp Date: Wed, 25 Apr 2018 11:29:18 +0200 Subject: [PATCH] Fix Clang thread safety guards in drawable_submap.h (#839) Fixes a Clang compiler error. --- cartographer_rviz/cartographer_rviz/drawable_submap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cartographer_rviz/cartographer_rviz/drawable_submap.h b/cartographer_rviz/cartographer_rviz/drawable_submap.h index ea3b154..df8cc18 100644 --- a/cartographer_rviz/cartographer_rviz/drawable_submap.h +++ b/cartographer_rviz/cartographer_rviz/drawable_submap.h @@ -105,8 +105,8 @@ class DrawableSubmap : public QObject { ::rviz::Axes pose_axes_; ::rviz::MovableText submap_id_text_; std::chrono::milliseconds last_query_timestamp_ GUARDED_BY(mutex_); - bool query_in_progress_ = false GUARDED_BY(mutex_); - int metadata_version_ = -1 GUARDED_BY(mutex_); + bool query_in_progress_ GUARDED_BY(mutex_) = false; + int metadata_version_ GUARDED_BY(mutex_) = -1; std::future rpc_request_future_; std::unique_ptr<::cartographer::io::SubmapTextures> submap_textures_ GUARDED_BY(mutex_);