-
-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Wimplicit-fallthrough
warnings (#713)
#1498
Conversation
src/xrPhysics/PHJoint.cpp
Outdated
@@ -1255,7 +1261,7 @@ void CPHJoint::SetAxisSDfactorsActive(int axis_num) | |||
case 0: | |||
dJointSetSliderParam(m_joint, dParamStopERP, axes[0].erp); | |||
dJointSetSliderParam(m_joint, dParamStopCFM, axes[0].cfm); | |||
case 1: | |||
[[fallthrough]]; case 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? Or is this actually a missing break
?
src/xrPhysics/PHJoint.cpp
Outdated
@@ -563,7 +563,7 @@ CPHJoint::CPHJoint(CPhysicsJoint::enumType type, CPhysicsElement* first, CPhysic | |||
axes.push_back(axis); | |||
axes.push_back(axis2); | |||
axes.push_back(axis3); | |||
case slider: axes.push_back(axis); axes.push_back(axis); | |||
[[fallthrough]]; case slider: axes.push_back(axis); axes.push_back(axis); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is correct but it looks very wrong to me :/
bfea56f
to
b90c438
Compare
Fixed style issues :) |
b90c438
to
73d47a2
Compare
73d47a2
to
5e20cd3
Compare
5e20cd3
to
b65164d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove added break
Mostly just sprinkled some good old
[[fallthrough]]
.