Fix Clang warnings. (#1292)
parent
89f0c45de8
commit
05a8314a23
|
@ -53,8 +53,6 @@ constexpr double kTimeStep = 0.1; // Seconds.
|
|||
constexpr double kTravelDistance = 1.2; // Meters.
|
||||
|
||||
constexpr char kSerializationHeaderProtoString[] = "format_version: 1";
|
||||
constexpr char kUnsupportedSerializationHeaderProtoString[] =
|
||||
"format_version: 123";
|
||||
constexpr char kPoseGraphProtoString[] = R"(pose_graph {
|
||||
trajectory: {
|
||||
trajectory_id: 0
|
||||
|
|
|
@ -102,7 +102,6 @@ class ActiveSubmaps3D {
|
|||
void AddSubmap(const transform::Rigid3d& local_submap_pose);
|
||||
|
||||
const proto::SubmapsOptions3D options_;
|
||||
int matching_submap_index_ = 0;
|
||||
std::vector<std::shared_ptr<Submap3D>> submaps_;
|
||||
RangeDataInserter3D range_data_inserter_;
|
||||
};
|
||||
|
|
|
@ -546,7 +546,7 @@ void PoseGraph3D::WaitForAllComputations() {
|
|||
|
||||
// Now wait for any pending constraint computations to finish.
|
||||
common::MutexLocker locker(&mutex_);
|
||||
bool notification GUARDED_BY(mutex_) = false;
|
||||
bool notification = false;
|
||||
constraint_builder_.WhenDone(
|
||||
[this,
|
||||
¬ification](const constraints::ConstraintBuilder3D::Result& result)
|
||||
|
|
Loading…
Reference in New Issue