Переглянути джерело

Add maybe_unused to variable that is used in non-release macro (#755)

Signed-off-by: Michał Pełka <[email protected]>
Michał Pełka 1 рік тому
батько
коміт
a7eec48e5c
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      Gems/ROS2/Code/Source/VehicleDynamics/Utilities.cpp

+ 2 - 1
Gems/ROS2/Code/Source/VehicleDynamics/Utilities.cpp

@@ -131,7 +131,8 @@ namespace ROS2::VehicleDynamics::Utilities
                 if (articulation)
                 {
                     steeringData.m_steeringJoint = articulation->GetId();
-                    const bool hasFreeAxis = Utils::TryGetFreeArticulationAxis(steeringData.m_steeringEntity, steeringData.m_axis);
+                    [[maybe_unused]] const bool hasFreeAxis =
+                        Utils::TryGetFreeArticulationAxis(steeringData.m_steeringEntity, steeringData.m_axis);
 
                     AZ_Error("VehicleDynamics::Utilities", hasFreeAxis, "Articulation steering has no free axis somehow");
                 }