Skip to content

spml/yoda: fix compiler warning #2024

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion oshmem/mca/spml/yoda/spml_yoda.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* and Technology (RIST). All rights reserved.
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -642,7 +643,11 @@ int mca_spml_yoda_add_procs(oshmem_proc_t** procs, size_t nprocs)
}

/* create_btl_idx requires the proc was add_proc'ed, so do it now */
rc = MCA_PML_CALL(add_procs(procs, nprocs));
/* procs are of type (oshmem_proc_t**), which is techincally
different than (ompi_proc_t**). But these two types were
(separately) declared to be functionally identical, so the cast
here is functionally ok (this should really be cleaned up). */
rc = MCA_PML_CALL(add_procs((ompi_proc_t**) procs, nprocs));
if (OMPI_SUCCESS != rc) {
goto cleanup_and_return;
}
Expand Down