Skip to content

Commit 7dcab6e

Browse files
authored
Merge pull request #5269 from hppritcha/topic/squash_gcc7.3.0_warnings
topo/treematch - quash compiler warning
2 parents f9bfb9d + 64de269 commit 7dcab6e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

ompi/mca/osc/pt2pt/osc_pt2pt_data_move.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,7 @@ int ompi_osc_pt2pt_process_receive (ompi_osc_pt2pt_receive_t *recv)
16421642
ompi_osc_pt2pt_header_t *base_header = (ompi_osc_pt2pt_header_t *) recv->buffer;
16431643
size_t incoming_length = recv->pml_request->req_status._ucount;
16441644
int source = recv->pml_request->req_status.MPI_SOURCE;
1645-
int rc;
1645+
int rc __opal_attribute_unused__;
16461646

16471647
assert(incoming_length >= sizeof(ompi_osc_pt2pt_header_base_t));
16481648
(void)incoming_length; // silence compiler warning

ompi/mca/osc/rdma/osc_rdma_active_target.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ int ompi_osc_rdma_complete_atomic (ompi_win_t *win)
443443
ompi_osc_rdma_sync_t *sync = &module->all_sync;
444444
ompi_osc_rdma_peer_t **peers;
445445
ompi_group_t *group;
446-
int group_size, ret;
446+
int group_size;
447+
int ret __opal_attribute_unused__;
447448

448449
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "complete: %s", win->w_name);
449450

ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ int mca_topo_treematch_dist_graph_create(mca_topo_base_module_t* topo_module,
135135
int *lindex_to_grank = NULL;
136136
int *nodes_roots = NULL, *k = NULL;
137137
int *localrank_to_objnum = NULL;
138-
int depth, effective_depth, obj_rank = -1;
138+
int depth, effective_depth = 0, obj_rank = -1;
139139
int num_objs_in_node = 0, num_pus_in_node = 0;
140140
int numlevels = 0, num_nodes = 0, num_procs_in_node = 0;
141141
int rank, size, newrank = -1, hwloc_err, i, j, idx;

opal/mca/btl/ugni/btl_ugni_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ mca_btl_ugni_component_init (int *num_btl_modules,
503503
int mca_btl_ugni_progress_datagram (mca_btl_ugni_device_t *device)
504504
{
505505
mca_btl_ugni_module_t *ugni_module = mca_btl_ugni_component.modules;
506-
mca_btl_base_endpoint_t *ep;
506+
mca_btl_base_endpoint_t *ep = NULL;
507507
gni_ep_handle_t handle;
508508
int count = 0, rc;
509509

opal/mca/btl/vader/btl_vader_xpmem.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ mca_rcache_base_registration_t *vader_get_registation (struct mca_btl_base_endpo
153153

154154
static int mca_btl_vader_endpoint_xpmem_rcache_cleanup (mca_rcache_base_registration_t *reg, void *ctx)
155155
{
156-
mca_rcache_base_vma_module_t *vma_module = mca_btl_vader_component.vma_module;
157156
mca_btl_vader_endpoint_t *ep = (mca_btl_vader_endpoint_t *) ctx;
158157
if ((intptr_t) reg->alloc_base == ep->peer_smp_rank) {
159158
/* otherwise dereg will fail on assert */

0 commit comments

Comments
 (0)