-
Notifications
You must be signed in to change notification settings - Fork 868
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 many compiler warnings #8203
Conversation
This is *more-or-less* a cherry pick of the master PR open-mpi#8203, but with a bunch of v4.1.x-specific warnings fixed, too (and some dropped from open-mpi#8203 that aren't relevant here in the v4.1.x branch). This commit message will be amended after open-mpi#8203 is finalized+merged. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
8b6ce18
to
4353b22
Compare
Pushed some changes so that I can git pull down to a different machine to fix the Fortran/monitoring issue. |
- Add some missing AC_CHECK_SIZEOF's in configure.ac - Remove some unused variables - Initialize some variables - Fix some parameter types - Cast where appropriate/safe to fix warnings - Move ompi/mca/common/monitoring Fortran bindings to a separate .c file so that they can use different #define's than the C bindings, and therefore compile properly / without warnings. - Fix signedness discrepancies - Who knew? Separated these into multiple #if's, instead: ``` // This is undefined behavior #define HAVE_FOO defined(FOO) #define YOW (HAVE_FOO && defined(BAR)) ``` - Fix some typos in OMPI_BUILD_HOST logic - Don't "2>/dev/null" in OMPI_BUILD_HOST logic; it just hides errors Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
4353b22
to
14aa5fa
Compare
@bosilca @ggouaillardet @devreal Made all the changes from the discussion here. This PR now passes CI and is ready for review. |
This PR is not yet final. It is more-or-less a cherry-pick from open-mpi#8203, but with some v4.1.x-specific fixes and some not-relevant-to-v4.1.x fixes dropped. --> Final commit from open-mpi#8203 may be: 14aa5fa The commit message on the commit(s) on this PR will be updated after Fixes open-mpi#8195. This PR doesn't fix all the warnings from open-mpi#8195, but fixes many of them (e.g., I didn't get the "string might be truncated" warnings on my Mac). Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
FWIW, One option would be to define |
@bosilca @ggouaillardet @devreal Can you please review? |
There are still few comments not addressed. |
@bosilca Which ones? I didn't think @ggouaillardet's comments about |
You don't see my review ? |
@jsquyres See my comment here: #8203 (comment) I don't see how the respective warning has been fixed. I think we still need to fix the function signature of Otherwise it looks good to me 👍 |
bot:ibm:retest |
Ok, I think all comments have been addressed. I'll merge. |
The IBM CI (GNU/Scale) build failed! Please review the log, linked below. Gist: https://gist.github.com/ibm-ompi/88b480fb98dfd2bdac939f023e1f8fe6 |
Signed-off-by: Jeff Squyres jsquyres@cisco.com