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 a large bunch of warnings #601

Merged
merged 7 commits into from
Jun 28, 2024

Conversation

wxmerkt
Copy link
Contributor

@wxmerkt wxmerkt commented Jun 26, 2024

Won't get us to zero but will reduce some of the recent additions

nim65s
nim65s previously approved these changes Jun 26, 2024
template <int _SupportOptions>
inline void getShapeSupport(const Box* box, const Vec3f& dir, Vec3f& support,
int& /*unused*/, ShapeSupportData& /*unused*/) {
// ============================================================================
Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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.

@wxmerkt wxmerkt force-pushed the topic/wxm-fix-bunch-of-warnings branch from c0fb226 to 76fab91 Compare June 26, 2024 16:50
@jcarpent
Copy link
Member

@lmontaut How do you want to proceed?

@lmontaut
Copy link
Contributor

@wxmerkt Thanks a lot for fixing all these warnings!
@jcarpent I think we can merge this PR, I will take care of rebasing #596.

@jcarpent jcarpent merged commit 2a7e554 into coal-library:devel Jun 28, 2024
28 of 33 checks passed
@wxmerkt wxmerkt mentioned this pull request Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants