Skip to content

Commit

Permalink
Address compiler warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Nov 17, 2022
1 parent 772409e commit 5ce1d49
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ class EnvironmentVisualizationPrivate
{{"xyz", gz::msgs::PointCloudPacked::Field::FLOAT32}});
auto numberOfPoints =
ceil(xSamples) * ceil(ySamples) * ceil(zSamples);
std::size_t dataSize{numberOfPoints * pcMsg.point_step()};
std::size_t dataSize{
static_cast<std::size_t>(numberOfPoints * pcMsg.point_step())};
pcMsg.mutable_data()->resize(dataSize);
pcMsg.set_height(1);
pcMsg.set_width(numberOfPoints);
Expand Down Expand Up @@ -279,8 +280,8 @@ void EnvironmentVisualization::Update(const UpdateInfo &_info,
{
_ecm.EachNew<components::Environment>(
[this](
const Entity &_entity,
const components::Environment* environment
const Entity &/*_entity*/,
const components::Environment* /*environment*/
) {
this->dataPtr->resample = true;
return true;
Expand Down

0 comments on commit 5ce1d49

Please sign in to comment.