1
1

Merge pull request #6658 from jsquyres/pr/usnic-fix-coverity-cid-1445095

usnic: fix Coverity false positives
Этот коммит содержится в:
Jeff Squyres 2019-05-14 18:22:29 -04:00 коммит произвёл GitHub
родитель 6089608858 df5f7afb14
Коммит db0775974d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

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

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2017 Cisco Systems, Inc. All rights reserved
* Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -20,6 +20,10 @@
#include "btl_usnic_util.h"
// The following comment tells Coverity that this function does not return.
// See https://scan.coverity.com/tune.
/* coverity[+kill] */
void opal_btl_usnic_exit(opal_btl_usnic_module_t *module)
{
if (NULL == module) {
@ -61,7 +65,14 @@ void opal_btl_usnic_exit(opal_btl_usnic_module_t *module)
/*
* Simple utility in a .c file, mainly so that inline functions in .h
* files don't need to include the show_help header file.
*
* The following comment tells Coverity that this function does not
* return. See https://scan.coverity.com/tune. Technically, we
* shouldn't need this, because opal_btl_usnic_exit() has the same
* annotation, but let's just help Coverity out.
*/
/* coverity[+kill] */
void opal_btl_usnic_util_abort(const char *msg, const char *file, int line)
{
opal_show_help("help-mpi-btl-usnic.txt", "internal error after init",