Skip to content

Conversation

@lowpolyneko
Copy link
Collaborator

@lowpolyneko lowpolyneko commented Oct 23, 2025

Pull Request Description

This PR is a roll-up of various minor fixes for warning emits from our nightly CI. Most of these are emits which only present themselves on clang. Comments are welcome if these fixes could be improved. :)

Meta: I'm intending on using this PR as a testbed for the new mpich-review-spack CI job which I've been workshopping. Please hold off merging this so I have a place to test the job and not pollute the comments of other PRs.

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

`clang` emits `-Wsometimes-uninitialized` for the error case of
`prepare_local_lpids` as `*num_worlds_out` is set to an uninitialized
`num_worlds` upon jump to `fn_exit`. The fix is to move the
initialization of `num_worlds` prior to the check.
`clang` doesn't have an equivalent to `-Wdiscarded-qualifiers`, so we
shouldn't bother setting the ignore pragma.
`f16_sum/store/load` are unused when `MPIR_FLOAT16_CTYPE` exists, we
should only include the function declaration and definitions if we need
the software implementation.
`ucs_status_ptr_t` is a typedef for `void *` and `UCS_OK` is an enum
which equals `0`. `NULL` and `UCS_OK` are equivalent for the purposes of
`status`.
@lowpolyneko lowpolyneko force-pushed the ewong/warnings-rollup branch from bb84dd9 to 50e3e0d Compare October 23, 2025 18:04
@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

3 similar comments
@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@hzhou hzhou marked this pull request as draft October 23, 2025 21:05
@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

3 similar comments
@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/ch4/ofi
test: mpich/ch4/ucx

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

8 similar comments
@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

@lowpolyneko
Copy link
Collaborator Author

test: mpich/custom/spack

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.

1 participant