From f4693c9afde636182407ecf2f708c1a4b0fb90ec Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 16 Jan 2015 11:34:11 -0800 Subject: [PATCH] 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. --- oshmem/util/oshmem_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oshmem/util/oshmem_util.c b/oshmem/util/oshmem_util.c index 15d958611f..b763dbdea9 100644 --- a/oshmem/util/oshmem_util.c +++ b/oshmem/util/oshmem_util.c @@ -1,6 +1,7 @@ /* * Copyright (c) 2014 Mellanox Technologies, Inc. * All rights reserved. + * Copyright (c) 2015 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -22,7 +23,7 @@ void oshmem_output_verbose(int level, int output_id, const char* prefix, { va_list args; char *buff, *str; - int ret; + int ret = 0; if (level < opal_output_get_verbosity(output_id)) { UNREFERENCED_PARAMETER(ret);