From 017f242b1b41419a53f8e6861faa7117fad512a6 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 25 Mar 2016 14:58:39 -0700 Subject: [PATCH] opal: remove some unused variables / compiler warnings Signed-off-by: Jeff Squyres --- opal/class/opal_graph.c | 2 +- opal/mca/btl/openib/btl_openib_component.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/opal/class/opal_graph.c b/opal/class/opal_graph.c index cea79b9b03..66aec9e9f7 100644 --- a/opal/class/opal_graph.c +++ b/opal/class/opal_graph.c @@ -13,6 +13,7 @@ * Copyright (c) 2007 Voltaire All rights reserved. * Copyright (c) 2016 Los Alamos National Security, LLC. All rights * reserved. + * Copyright (c) 2016 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -337,7 +338,6 @@ void opal_graph_remove_edge (opal_graph_t *graph, opal_graph_edge_t *edge) void opal_graph_remove_vertex(opal_graph_t *graph, opal_graph_vertex_t *vertex) { opal_adjacency_list_t *adj_list; - opal_graph_edge_t *edge; /* do not need to remove all the edges of this vertex and destruct them as * they will be released in the destructor for adj_list */ diff --git a/opal/mca/btl/openib/btl_openib_component.c b/opal/mca/btl/openib/btl_openib_component.c index fd926c1b78..c7dc6c5b40 100644 --- a/opal/mca/btl/openib/btl_openib_component.c +++ b/opal/mca/btl/openib/btl_openib_component.c @@ -10,7 +10,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. - * Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2006-2016 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2006-2015 Mellanox Technologies. All rights reserved. * Copyright (c) 2006-2015 Los Alamos National Security, LLC. All rights * reserved. @@ -2131,7 +2131,6 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev) { /* we need to read this MCA param at this point in case someone * altered it via MPI_T */ - int index; mca_base_var_source_t source; if (OPAL_SUCCESS != (ret = get_var_source ("receive_queues", &source))) {