Skip to content
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

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

AMS21
Copy link
Contributor

@AMS21 AMS21 commented Nov 5, 2023

Mostly just sprinkled some good old [[fallthrough]].

@@ -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:
Copy link
Contributor Author

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?

@@ -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);
Copy link
Contributor Author

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 :/

src/xrCDB/Frustum.cpp Outdated Show resolved Hide resolved
@AMS21 AMS21 force-pushed the warnings/implicit_fallthrough branch from bfea56f to b90c438 Compare November 5, 2023 20:01
@AMS21
Copy link
Contributor Author

AMS21 commented Nov 5, 2023

Fixed style issues :)

@AMS21 AMS21 force-pushed the warnings/implicit_fallthrough branch from b90c438 to 73d47a2 Compare November 5, 2023 20:03
@Xottab-DUTY Xottab-DUTY linked an issue Nov 15, 2023 that may be closed by this pull request
25 tasks
@Xottab-DUTY Xottab-DUTY removed a link to an issue Nov 15, 2023
25 tasks
@AMS21 AMS21 force-pushed the warnings/implicit_fallthrough branch from 73d47a2 to 5e20cd3 Compare November 17, 2023 14:13
@AMS21 AMS21 force-pushed the warnings/implicit_fallthrough branch from 5e20cd3 to b65164d Compare November 25, 2023 13:04
Copy link
Member

@Xottab-DUTY Xottab-DUTY left a 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

@Xottab-DUTY Xottab-DUTY merged commit bde2029 into OpenXRay:dev Nov 29, 2023
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants