1
1

Fix a couple of 'unused variable' warnings, and one return value warning.

{{{
base/paffinity_base_service.c: In function ‘opal_paffinity_base_cset2mapstr’:
base/paffinity_base_service.c:623: warning: unused variable ‘range_last’
base/paffinity_base_service.c:623: warning: unused variable ‘range_first’
base/paffinity_base_service.c:622: warning: unused variable ‘count’
base/paffinity_base_service.c:622: warning: unused variable ‘m’
}}}

{{{
connect/btl_openib_connect_oob.c: In function ‘init_ud_qp’:
connect/btl_openib_connect_oob.c:1111: warning: control reaches end of non-void function
connect/btl_openib_connect_oob.c: In function ‘init_device’:
connect/btl_openib_connect_oob.c:1235: warning: unused variable ‘i’
connect/btl_openib_connect_oob.c: In function ‘get_pathrecord_sl’:
connect/btl_openib_connect_oob.c:1323: warning: unused variable ‘i’
}}}

This commit was SVN r24196.
Этот коммит содержится в:
Josh Hursey 2010-12-30 15:37:50 +00:00
родитель 834625cc51
Коммит bbfdf04a81
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1108,6 +1108,7 @@ static int init_ud_qp(struct ibv_context *context_arg,
return OMPI_ERROR;
}
return OMPI_SUCCESS;
}
static void init_sa_mad(struct mca_btl_openib_sa_qp_cache *cache,
struct ib_mad_sa *sag,
@ -1232,7 +1233,7 @@ static int init_device(struct ibv_context *context_arg,
struct ibv_ah_attr aattr;
struct ibv_port_attr pattr;
struct ibv_recv_wr *brwr;
int i, rc;
int rc;
cache->context = ibv_open_device(context_arg->device);
if (NULL == cache->context) {
@ -1320,7 +1321,7 @@ static int get_pathrecord_sl(struct ibv_context *context_arg,
struct ibv_sge ssge;
struct mca_btl_openib_sa_qp_cache *cache;
long page_size = sysconf(_SC_PAGESIZE);
int i, rc;
int rc;
/* search for a cached item */
for (cache = sa_qp_cache; cache; cache = cache->next) {

Просмотреть файл

@ -619,8 +619,7 @@ int opal_paffinity_base_cset2str(char *str, int len,
int opal_paffinity_base_cset2mapstr(char *str, int len,
opal_paffinity_base_cpu_set_t *cset)
{
int ret, i, j, k, m, num_sockets, num_cores, flag, count,
range_first=0, range_last;
int ret, i, j, k, num_sockets, num_cores, flag;
char tmp[BUFSIZ];
const int stmp = sizeof(tmp) - 1;