@@ -290,7 +290,7 @@ static int component_init(bool enable_progress_threads, bool enable_mpi_threads)
290
290
return OMPI_SUCCESS ;
291
291
}
292
292
293
- static int component_set_priority () {
293
+ static int component_set_priority (void ) {
294
294
int param , ret ;
295
295
opal_common_ucx_support_level_t support_level = OPAL_COMMON_UCX_SUPPORT_NONE ;
296
296
mca_base_var_source_t param_source = MCA_BASE_VAR_SOURCE_DEFAULT ;
@@ -686,7 +686,7 @@ static int component_select(struct ompi_win_t *win, void **base, size_t size, pt
686
686
module -> noncontig_shared_win = false;
687
687
if (OMPI_SUCCESS != opal_info_get_bool (info , "alloc_shared_noncontig" ,
688
688
& module -> noncontig_shared_win , & flag )) {
689
- err = OMPI_ERR_BAD_PARAM ;
689
+ ret = OMPI_ERR_BAD_PARAM ;
690
690
goto error ;
691
691
}
692
692
@@ -842,10 +842,10 @@ static int component_select(struct ompi_win_t *win, void **base, size_t size, pt
842
842
843
843
844
844
for (i = 0 , total = 0 ; i < comm_size ; ++ i ) {
845
- size_t size = ompi_osc_ucx_get_size (module , i );
846
- if (size || !module -> noncontig_shared_win ) {
845
+ size_t peer_size = ompi_osc_ucx_get_size (module , i );
846
+ if (peer_size || !module -> noncontig_shared_win ) {
847
847
module -> shmem_addrs [i ] = ((uint64_t ) module -> segment_base ) + total ;
848
- total += size ;
848
+ total += peer_size ;
849
849
} else {
850
850
module -> shmem_addrs [i ] = (uint64_t )NULL ;
851
851
}
@@ -988,7 +988,7 @@ static int component_select(struct ompi_win_t *win, void **base, size_t size, pt
988
988
error :
989
989
if (module -> disp_units ) free (module -> disp_units );
990
990
if (module -> comm ) ompi_comm_free (& module -> comm );
991
- if (module -> sizes ) ompi_comm_free ( & module -> sizes );
991
+ if (module -> sizes ) free ( module -> sizes );
992
992
free (module );
993
993
module = NULL ;
994
994
0 commit comments