Silence coverity warnings
Этот коммит содержится в:
родитель
83375bcc5c
Коммит
023936e84b
@ -15,7 +15,7 @@
|
|||||||
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
|
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* 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
|
* Copyright (c) 2014-2015 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
@ -1281,7 +1281,7 @@ static int parse_port_name(const char *port_name,
|
|||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
/* convert the RML tag */
|
/* 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 */
|
/* now split out the second field - the uri of the remote proc */
|
||||||
if (NULL == (ptr = strchr(tmpstring, '+'))) {
|
if (NULL == (ptr = strchr(tmpstring, '+'))) {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Copyright (c) 2007 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2007 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2009-2015 Cisco Systems, Inc. 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
|
* Copyright (c) 2015 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
@ -162,7 +162,7 @@ opal_net_init(void)
|
|||||||
for( i = 0; i < count; i++ ) {
|
for( i = 0; i < count; i++ ) {
|
||||||
arg = args[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) ||
|
if( (a > 255) || (b > 255) || (c > 255) ||
|
||||||
(d > 255) || (bits > 32) ) {
|
(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",
|
"%s connect ack received error %s from %s",
|
||||||
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
(NULL == peer) ? "UNKNOWN" : ORTE_NAME_PRINT(&(peer->name)));
|
ORTE_NAME_PRINT(&(peer->name)));
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
opal_output(0,
|
opal_output(0,
|
||||||
"%s tcp_peer_recv_blocking: "
|
"%s tcp_peer_recv_blocking: "
|
||||||
"recv() failed for %s: %s (%d)\n",
|
"recv() failed for %s: %s (%d)\n",
|
||||||
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
||||||
(NULL == peer) ? "UNKNOWN" : ORTE_NAME_PRINT(&(peer->name)),
|
ORTE_NAME_PRINT(&(peer->name)),
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
peer->state = MCA_OOB_TCP_FAILED;
|
peer->state = MCA_OOB_TCP_FAILED;
|
||||||
|
@ -221,9 +221,9 @@ void orte_plm_base_recv(int status, orte_process_name_t* sender,
|
|||||||
} else {
|
} else {
|
||||||
jdata->bookmark = parent->bookmark;
|
jdata->bookmark = parent->bookmark;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/* provide the parent's last object */
|
/* provide the parent's last object */
|
||||||
jdata->bkmark_obj = parent->bkmark_obj;
|
jdata->bkmark_obj = parent->bkmark_obj;
|
||||||
|
}
|
||||||
|
|
||||||
/* launch it */
|
/* launch it */
|
||||||
OPAL_OUTPUT_VERBOSE((5, orte_plm_base_framework.framework_output,
|
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) {
|
if (NULL != node_cnt) {
|
||||||
opal_argv_free(node_cnt);
|
opal_argv_free(node_cnt);
|
||||||
}
|
}
|
||||||
|
#if OPAL_HAVE_HWLOC
|
||||||
|
if (NULL != topos) {
|
||||||
|
opal_argv_free(topos);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
|
|
||||||
error_silent:
|
error_silent:
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user