diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-28 09:47:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 09:47:29 +0200 |
commit | c7e646c30a5ca9abcd04383381d9a216cd2ee185 (patch) | |
tree | 431cb56ac164abee8845af163f9c23f7dbc3b1ab /modules/bullet/hinge_joint_bullet.cpp | |
parent | 1c60465c5958446a2daccc54a1c58c3dee9b21a3 (diff) | |
parent | 7b081a7fc8011c5ce7194fc0eabb8768e0f9d4c6 (diff) |
Merge pull request #22447 from akien-mga/fix-warnings-Wswitch
Fix warnings about unhandled enum value in switch [-Wswitch]
Diffstat (limited to 'modules/bullet/hinge_joint_bullet.cpp')
-rw-r--r-- | modules/bullet/hinge_joint_bullet.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/bullet/hinge_joint_bullet.cpp b/modules/bullet/hinge_joint_bullet.cpp index 86c6a632cd..3a4459a581 100644 --- a/modules/bullet/hinge_joint_bullet.cpp +++ b/modules/bullet/hinge_joint_bullet.cpp @@ -117,7 +117,7 @@ void HingeJointBullet::set_param(PhysicsServer::HingeJointParam p_param, real_t hingeConstraint->setMaxMotorImpulse(p_value); break; default: - ERR_EXPLAIN("This parameter " + itos(p_param) + " is deprecated"); + ERR_EXPLAIN("The HingeJoint parameter " + itos(p_param) + " is deprecated."); WARN_DEPRECATED break; } @@ -143,7 +143,7 @@ real_t HingeJointBullet::get_param(PhysicsServer::HingeJointParam p_param) const case PhysicsServer::HINGE_JOINT_MOTOR_MAX_IMPULSE: return hingeConstraint->getMaxMotorImpulse(); default: - ERR_EXPLAIN("This parameter " + itos(p_param) + " is deprecated"); + ERR_EXPLAIN("The HingeJoint parameter " + itos(p_param) + " is deprecated."); WARN_DEPRECATED; return 0; } @@ -159,6 +159,7 @@ void HingeJointBullet::set_flag(PhysicsServer::HingeJointFlag p_flag, bool p_val case PhysicsServer::HINGE_JOINT_FLAG_ENABLE_MOTOR: hingeConstraint->enableMotor(p_value); break; + case PhysicsServer::HINGE_JOINT_FLAG_MAX: break; // Can't happen, but silences warning } } |