Skip to content

Commit

Permalink
Fix compiler warnings (#808)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Dec 30, 2021
1 parent 09c06ea commit f03ec70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/FrameSemantics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ Errors buildFrameAttachedToGraph(

const std::string scopeContextName = "__model__";

auto rootId = ignition::math::graph::kNullId;
if (_isRoot)
{
// The __root__ vertex identifies the scope that contains a root level
Expand All @@ -326,7 +325,6 @@ Errors buildFrameAttachedToGraph(
// more complexity to the validateFrameAttachedToGraph code.
_out = _out.AddScopeVertex(
"", "__root__", scopeContextName, sdf::FrameType::STATIC_MODEL);
rootId = _out.ScopeVertexId();
}

const auto modelId = _out.AddVertex(_model->Name(), frameType).Id();
Expand Down
2 changes: 1 addition & 1 deletion src/World.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Errors World::Load(sdf::ElementPtr _sdf, const ParserConfig &_config)

for (const auto &ifaceModelPair : this->dataPtr->interfaceModels)
{
frameNames.insert(ifaceModelPair.second->Name()).second;
frameNames.insert(ifaceModelPair.second->Name());
}

// Load all the physics.
Expand Down

0 comments on commit f03ec70

Please sign in to comment.