Skip to content

Commit

Permalink
Added [[maybe_unused]] to fix release build
Browse files Browse the repository at this point in the history
Merge pull request #693 from RobotecAI/mp/fix_compilation_release_23103
  • Loading branch information
amzn-changml authored May 2, 2024
2 parents 8353534 + 40dd56f commit ce584e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gems/ROS2/Code/Source/RobotImporter/URDF/SensorsMaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace ROS2
for (size_t si = 0; si < link->SensorCount(); ++si)
{
const auto* sensor = link->SensorByIndex(si);
const bool success = AddSensor(entityId, sensor);
[[maybe_unused]] const bool success = AddSensor(entityId, sensor);
AZ_Warning("SensorMaker", success, "Cannot find a sensor hook for sensor %d", sensor->Type());
}
}
Expand Down

0 comments on commit ce584e2

Please sign in to comment.