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

Nidmap.c and onesided_aggregation.c Compiler Warnings fix #7172

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

wbailey2
Copy link
Contributor

There are some compiler warning messages that appear for uninitialized values for both nidmap.c and onesided_aggregation.c . I found the variables causing these issues.

For nidmap.c there was a declared variable rc which was not initialized so I set it = 0.

For onesided_aggregation.c there was a declared variable *derivedTypePackedSourceBuffer but not initialized. I found the variable declartion and initialized it to = NULL.

Signed-off-by: William Bailey wbailey2@nd.edu

@ompiteam-bot
Copy link

Can one of the admins verify this patch?

@awlauria
Copy link
Contributor

ok to test

@awlauria
Copy link
Contributor

Thanks for the fix.

Looks like we can now remove lines 2027 and 2028 in onesided_aggregation.c

Copy link
Contributor

@awlauria awlauria left a comment

Choose a reason for hiding this comment

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

This looks good - just remove these two lines.

Thanks.

Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

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

@awlauria I think you're right, but given that this is ROMIO (i.e., a 3rd party import into our repo), we usually go for the minimum distance fixes so that the next time we import ROMIO, we can identify the changes that we may need to carry over to the next version.

So I think that just setting it to NULL is fine (and leaving the other 2 lines).

Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

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

Actually, I would like to make one minor request: please split this into 2 commits. These changes are in very different parts of the code base, so we would probably split the individual changes into their own separate commits.

Squash compiler warning.

Signed-off-by: William Bailey <wbailey2@nd.edu>
Squash compiler warning.

ROMIO is third-party software but has an annoying compiler warning;
this is the minimum distance fix.

Signed-off-by: William Bailey <wbailey2@nd.edu>
@wbailey2
Copy link
Contributor Author

wbailey2 commented Dec 2, 2019

I just updated these fixes and split them into two.

@jsquyres
Copy link
Member

jsquyres commented Dec 3, 2019

@awlauria Are you ok with this?

@gpaulsen
Copy link
Member

gpaulsen commented Dec 3, 2019

@jsquyres,
@awlauria is off on vacation this week. This looks good to me. Feel free to merge.

@gpaulsen gpaulsen dismissed awlauria’s stale review December 3, 2019 14:36

Dismissing, because Austen is on vacation, and his changes have been applied.

@jsquyres jsquyres merged commit 9dd3429 into open-mpi:master Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants