Skip to content

Commit

Permalink
Fix unused result warning in clang.
Browse files Browse the repository at this point in the history
And remove incorrect comment
  • Loading branch information
ptheywood committed Jan 5, 2024
1 parent 75c6a5b commit c203f25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/flamegpu/simulation/CUDASimulation.cu
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ CUDASimulation::CUDASimulation(const std::shared_ptr<const ModelData> &_model, b
const auto &am = model->agents;
// create new cuda agent and add to the map
for (auto it = am.cbegin(); it != am.cend(); ++it) {
// insert into map using value_type and store a reference to the map pair
agent_map.emplace(it->first, std::make_unique<detail::CUDAAgent>(*it->second, *this)).first;
agent_map.emplace(it->first, std::make_unique<detail::CUDAAgent>(*it->second, *this));
}

// populate the CUDA message map
Expand Down Expand Up @@ -162,7 +161,7 @@ CUDASimulation::CUDASimulation(const std::shared_ptr<SubModelData> &submodel_des
agent_map.emplace(it->first, std::make_unique<detail::CUDAAgent>(*it->second, *this, masterAgent, mapping));
} else {
// Agent is not mapped, create regular agent
agent_map.emplace(it->first, std::make_unique<detail::CUDAAgent>(*it->second, *this)).first;
agent_map.emplace(it->first, std::make_unique<detail::CUDAAgent>(*it->second, *this));
}
} // insert into map using value_type

Expand Down

0 comments on commit c203f25

Please sign in to comment.