Fix Clang warnings. (#1292)

master
Alexander Belyaev 2018-07-18 09:17:39 +02:00 committed by GitHub
parent 89f0c45de8
commit 05a8314a23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 4 deletions

View File

@ -53,8 +53,6 @@ constexpr double kTimeStep = 0.1; // Seconds.
constexpr double kTravelDistance = 1.2; // Meters. constexpr double kTravelDistance = 1.2; // Meters.
constexpr char kSerializationHeaderProtoString[] = "format_version: 1"; constexpr char kSerializationHeaderProtoString[] = "format_version: 1";
constexpr char kUnsupportedSerializationHeaderProtoString[] =
"format_version: 123";
constexpr char kPoseGraphProtoString[] = R"(pose_graph { constexpr char kPoseGraphProtoString[] = R"(pose_graph {
trajectory: { trajectory: {
trajectory_id: 0 trajectory_id: 0

View File

@ -102,7 +102,6 @@ class ActiveSubmaps3D {
void AddSubmap(const transform::Rigid3d& local_submap_pose); void AddSubmap(const transform::Rigid3d& local_submap_pose);
const proto::SubmapsOptions3D options_; const proto::SubmapsOptions3D options_;
int matching_submap_index_ = 0;
std::vector<std::shared_ptr<Submap3D>> submaps_; std::vector<std::shared_ptr<Submap3D>> submaps_;
RangeDataInserter3D range_data_inserter_; RangeDataInserter3D range_data_inserter_;
}; };

View File

@ -546,7 +546,7 @@ void PoseGraph3D::WaitForAllComputations() {
// Now wait for any pending constraint computations to finish. // Now wait for any pending constraint computations to finish.
common::MutexLocker locker(&mutex_); common::MutexLocker locker(&mutex_);
bool notification GUARDED_BY(mutex_) = false; bool notification = false;
constraint_builder_.WhenDone( constraint_builder_.WhenDone(
[this, [this,
&notification](const constraints::ConstraintBuilder3D::Result& result) &notification](const constraints::ConstraintBuilder3D::Result& result)