Skip to content

Fix warning about uninitialized variable in coll_base_reduce #12568

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

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

devreal
Copy link
Contributor

@devreal devreal commented May 22, 2024

This fixes a warning issues by Clang 15 about the reqs pointer being used potentially uninitialized in the error path, i.e., if the cached_kmtree is NULL.

In some error cases the `reqs` pointer may be uninitialized.

Signed-off-by: Joseph Schuchart <[email protected]>
@devreal devreal force-pushed the fix-base-reduce-req-init branch from c64e63e to a1e00c7 Compare May 22, 2024 19:50
@janjust janjust merged commit 1438a79 into open-mpi:main Jun 11, 2024
14 checks passed
@devreal
Copy link
Contributor Author

devreal commented Jun 12, 2024

This does not need to be backported as ompi_coll_base_reduce_intra_knomial has not been brought back to 5.0.

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.

3 participants