Skip to content

Commit db07759

Browse files
authored
Merge pull request #6658 from jsquyres/pr/usnic-fix-coverity-cid-1445095
usnic: fix Coverity false positives
2 parents 6089608 + df5f7af commit db07759

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

opal/mca/btl/usnic/btl_usnic_util.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017 Cisco Systems, Inc. All rights reserved
2+
* Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
33
* $COPYRIGHT$
44
*
55
* Additional copyrights may follow
@@ -20,6 +20,10 @@
2020
#include "btl_usnic_util.h"
2121

2222

23+
// The following comment tells Coverity that this function does not return.
24+
// See https://scan.coverity.com/tune.
25+
26+
/* coverity[+kill] */
2327
void opal_btl_usnic_exit(opal_btl_usnic_module_t *module)
2428
{
2529
if (NULL == module) {
@@ -61,7 +65,14 @@ void opal_btl_usnic_exit(opal_btl_usnic_module_t *module)
6165
/*
6266
* Simple utility in a .c file, mainly so that inline functions in .h
6367
* files don't need to include the show_help header file.
68+
*
69+
* The following comment tells Coverity that this function does not
70+
* return. See https://scan.coverity.com/tune. Technically, we
71+
* shouldn't need this, because opal_btl_usnic_exit() has the same
72+
* annotation, but let's just help Coverity out.
6473
*/
74+
75+
/* coverity[+kill] */
6576
void opal_btl_usnic_util_abort(const char *msg, const char *file, int line)
6677
{
6778
opal_show_help("help-mpi-btl-usnic.txt", "internal error after init",

0 commit comments

Comments
 (0)