mpich
mpich copied to clipboard
misc: fix -Wconversion warnings
Pull Request Description
This is a split from #5069. This PR fixes -Wconversion warnings outside ch4 and romio.
[skip warnings]
Author Checklist
- [x] Provide Description Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
- [x] Commits Follow Good Practice
Commits are self-contained and do not do two things at once.
Commit message is of the form:
module: short descriptionCommit message explains what's in the commit. - [x] Passes All Tests Whitespace checker. Warnings test. Additional tests via comments.
- [x] Contribution Agreement For non-Argonne authors, check contribution agreement. If necessary, request an explicit comment from your companies PR approval manager.
test:mpich/ch4/most test:mpich/ch3/most
I've tried going over this a couple of times. It's pretty hard to get through. I'd rather see the different types of sub-warnings split out its easier to see what's going on. That is, commits addressing
-Wshorten-64-to-32and-Wsign-conversionbeing treated separately. The 64-to-32 stuff is pretty straightforward. The sign conversion warnings are mainly fixed by casts which I'm hopeful we can avoid more often than not...
I agree. Let me give it a try.