1
1

Merge pull request #758 from rhc54/topic/coverity

Silence coverity warnings
Этот коммит содержится в:
rhc54 2015-07-29 09:30:35 -07:00
родитель 83375bcc5c 023936e84b
Коммит 6c7875f701
5 изменённых файлов: 13 добавлений и 9 удалений

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

@ -15,7 +15,7 @@
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2013-2014 Intel, Inc. All rights reserved
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved
* Copyright (c) 2014-2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
@ -1281,7 +1281,7 @@ static int parse_port_name(const char *port_name,
ptr++;
/* convert the RML tag */
sscanf(ptr,"%d", &tag);
(void)sscanf(ptr,"%d", &tag);
/* now split out the second field - the uri of the remote proc */
if (NULL == (ptr = strchr(tmpstring, '+'))) {

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

@ -12,7 +12,7 @@
* Copyright (c) 2007 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2013 Intel, Inc. All rights reserved.
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
@ -162,7 +162,7 @@ opal_net_init(void)
for( i = 0; i < count; i++ ) {
arg = args[i];
sscanf( arg, "%u.%u.%u.%u/%u", &a, &b, &c, &d, &bits );
(void)sscanf( arg, "%u.%u.%u.%u/%u", &a, &b, &c, &d, &bits );
if( (a > 255) || (b > 255) || (c > 255) ||
(d > 255) || (bits > 32) ) {

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

@ -1032,14 +1032,14 @@ static bool tcp_peer_recv_blocking(mca_oob_tcp_peer_t* peer, int sd,
"%s connect ack received error %s from %s",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
strerror(opal_socket_errno),
(NULL == peer) ? "UNKNOWN" : ORTE_NAME_PRINT(&(peer->name)));
ORTE_NAME_PRINT(&(peer->name)));
return false;
} else {
opal_output(0,
"%s tcp_peer_recv_blocking: "
"recv() failed for %s: %s (%d)\n",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
(NULL == peer) ? "UNKNOWN" : ORTE_NAME_PRINT(&(peer->name)),
ORTE_NAME_PRINT(&(peer->name)),
strerror(opal_socket_errno),
opal_socket_errno);
peer->state = MCA_OOB_TCP_FAILED;

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

@ -221,9 +221,9 @@ void orte_plm_base_recv(int status, orte_process_name_t* sender,
} else {
jdata->bookmark = parent->bookmark;
}
/* provide the parent's last object */
jdata->bkmark_obj = parent->bkmark_obj;
}
/* provide the parent's last object */
jdata->bkmark_obj = parent->bkmark_obj;
/* launch it */
OPAL_OUTPUT_VERBOSE((5, orte_plm_base_framework.framework_output,

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

@ -302,7 +302,11 @@ static int allocate(orte_job_t *jdata, opal_list_t *nodes)
if (NULL != node_cnt) {
opal_argv_free(node_cnt);
}
#if OPAL_HAVE_HWLOC
if (NULL != topos) {
opal_argv_free(topos);
}
#endif
return ORTE_SUCCESS;
error_silent: