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 various compiler warnings #46

Closed

Conversation

StefanBruens
Copy link

This MR fixes the majority of the signed-vs-unsigned comparison warnings, see #29.

For the remaining warnings, some of the function parameter types and member variables would need changing, so these changes are left out for now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gcc complains size_t is undefined. Need to use std::size_t. Why this problem in just this file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because some headers put size_t into the global namespace.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stefan:
Legal wants contributors to sign Contributor License Agreement which is now in
#48
It is new for Ondsel so your feedback will be most helpful.
Thanks,
Aik-Siong

Fix all the instances where the index variable is only used for accessing
std::vector<T>.

Only change the occurences where the index does not depend on any member
variables or method parameters.
Copy link
Contributor

@huguesdpdn-aerospace huguesdpdn-aerospace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the const + & for Exceptions => Review OK (and tested with FreeCAD compilation)
Checked the conversion to size_t + removal of (int) casts => Review OK (not tested)
NOT checked: Initialization order

@huguesdpdn-aerospace
Copy link
Contributor

huguesdpdn-aerospace commented Jul 23, 2024

Hello,

in addition to PR #70 Fix various compiler warnings , this PR would be interesting to merge in order to avoid compilation warnings (for instance in FreeCAD)

I tried to review @StefanBruens's changes, looks all good (but not tested)
When time permits, could you please, @aiksiongkoh , @PaddleStroke or @pieterhijma , approve & merge this PR?

Do not hesitate to comment if you still think there is anything wrong or any blocker that I am not aware of (expect the git pull and merge to perform of course)

Regards,

@aiksiongkoh
Copy link
Collaborator

Outdated while waiting for Contributor Agreement.

@huguesdpdn-aerospace
Copy link
Contributor

huguesdpdn-aerospace commented Aug 13, 2024

Hello, what is this Contributor Agreement issue ? How can I solve it ?

@aiksiongkoh : can I resubmit the (pretty much) same PR ? Or do you also need a Contributor Agreement from me or the FreeCAD team ?

@sliptonic
Copy link
Contributor

Yes, we're still happy to consider contributions. A lot has changed since this was originally submitted.

The contributor license agreement is in the root of the source.
https://github.com/Ondsel-Development/OndselSolver/blob/main/CONTRIBUTING.md

You don't have to do anything specific but since the CLA was added after the PR was submitted and the original contributor has disappeared, I think we should open a new one.

If you want to see this merged, Can you please rebase this on the current master and submit a new PR with the relevant changes?

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