oshmem: fix compiler warning
Compiler warning that ret was used before it was assigned. Since this part of the code is not performance-critical, just throw in an extra assignment and be done with it.
Этот коммит содержится в:
родитель
66f6026214
Коммит
f4693c9afd
@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014 Mellanox Technologies, Inc.
|
* Copyright (c) 2014 Mellanox Technologies, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -22,7 +23,7 @@ void oshmem_output_verbose(int level, int output_id, const char* prefix,
|
|||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
char *buff, *str;
|
char *buff, *str;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
if (level < opal_output_get_verbosity(output_id)) {
|
if (level < opal_output_get_verbosity(output_id)) {
|
||||||
UNREFERENCED_PARAMETER(ret);
|
UNREFERENCED_PARAMETER(ret);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user