Browse Source

Fixed compiler warning under VS2019

jorrit 3 years ago
parent
commit
5a4bdd824a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h

+ 2 - 0
Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h

@@ -106,6 +106,7 @@ public:
 		}
 		}
 		else
 		else
 		{
 		{
+			(void)r1_plus_u_x_axis; // Fix compiler warning: Not using this (it's not calculated either)
 			JPH_IF_DEBUG(Vec3::sNaN().StoreFloat3(&mInvI1_R1PlusUxAxis);)
 			JPH_IF_DEBUG(Vec3::sNaN().StoreFloat3(&mInvI1_R1PlusUxAxis);)
 			inv_effective_mass = 0.0f;
 			inv_effective_mass = 0.0f;
 		}
 		}
@@ -118,6 +119,7 @@ public:
 		}
 		}
 		else
 		else
 		{
 		{
+			(void)r2_x_axis; // Fix compiler warning: Not using this (it's not calculated either)
 			JPH_IF_DEBUG(Vec3::sNaN().StoreFloat3(&mInvI2_R2xAxis);)
 			JPH_IF_DEBUG(Vec3::sNaN().StoreFloat3(&mInvI2_R2xAxis);)
 		}
 		}