-
Notifications
You must be signed in to change notification settings - Fork 98
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 a large bunch of warnings #601
Fix a large bunch of warnings #601
Conversation
template <int _SupportOptions> | ||
inline void getShapeSupport(const Box* box, const Vec3f& dir, Vec3f& support, | ||
int& /*unused*/, ShapeSupportData& /*unused*/) { | ||
// ============================================================================ |
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.
Hmm, given the changes pre-commit is doing here this change may actually be unfavourable. I didn't see this :-( Would it be worth turning off Wpedantic then?
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.
we can surround those with // clang-format off
and on
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.
Thanks for the reminder - I did that but it didn't work unless I did something wrong?
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.
This seems to work:
// clang-format off
template <int _SupportOptions>
inline void getShapeSupport(const Box* box, const Vec3f& dir, Vec3f& support,
int& /*unused*/, ShapeSupportData& /*unused*/) {
// clang-format on
Another solution is to cheat by removing the last semicolon inside the macro, so that we can add a semicolon at the end of the macro call, I guess.
c0fb226
to
76fab91
Compare
for more information, see https://pre-commit.ci
@lmontaut How do you want to proceed? |
Won't get us to zero but will reduce some of the recent additions