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

[All] Fix some compilation warnings #755

Merged
merged 19 commits into from
Aug 30, 2018

Conversation

epernod
Copy link
Contributor

@epernod epernod commented Aug 26, 2018

  • Fix some size_t to uint int conversion warnings

  • Fix some double to float warnings

  • When looping on topology buffer, use the typedef corresponding to id instead of using uint or int.


This PR:

  • builds with SUCCESS for all platforms on the CI.
  • does not generate new warnings.
  • does not generate new unit test failures.
  • does not generate new scene test failures.
  • does not break API compatibility.
  • is more than 1 week old (or has fast-merge label).

Reviewers will merge only if all these checks are true.

@hugtalbot hugtalbot added pr: clean Cleaning the code pr: status to review To notify reviewers to review this pull-request labels Aug 27, 2018
@hugtalbot hugtalbot self-requested a review August 27, 2018 08:46
@@ -60,9 +60,9 @@ BaseLink::~BaseLink()
/// Print the value of the associated variable
void BaseLink::printValue( std::ostream& o ) const
{
std::size_t size = getSize();
unsigned int size = (unsigned int)getSize();
Copy link
Contributor

Choose a reason for hiding this comment

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

You are finally no using the size_t
Is there a reason to prefer the UI ?

Copy link
Contributor Author

@epernod epernod Aug 28, 2018

Choose a reason for hiding this comment

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

in this case in the next line:
std::string path = getLinkedPath(i);
method getLinkedPath definition should have a size_t as argument...

@epernod epernod added pr: status wip Development in the pull-request is still in progress and removed pr: status to review To notify reviewers to review this pull-request labels Aug 27, 2018
@epernod
Copy link
Contributor Author

epernod commented Aug 28, 2018

[ci-build][with-scene-tests]

@epernod
Copy link
Contributor Author

epernod commented Aug 28, 2018

[ci-build][with-scene-tests]

@epernod epernod added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels Aug 28, 2018
@epernod epernod self-assigned this Aug 28, 2018
@guparan guparan added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Aug 29, 2018
@guparan guparan merged commit d33f320 into sofa-framework:master Aug 30, 2018
@guparan guparan added this to the v18.12 milestone Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: clean Cleaning the code pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants