Skip to content

Commit 0399f77

Browse files
committed
pml/ucx: silence a warning
declare 'fenced' volatile in order to silence CID 1437465 Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit edd02b7)
1 parent e7d60dc commit 0399f77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ompi/mca/pml/ucx/pml_ucx.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/*
2-
* Copyright (C) Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
2+
* Copyright (C) 2001-2011 Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
33
* Copyright (c) 2016 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
6+
* Copyright (c) 2018 Research Organization for Information Science
7+
* and Technology (RIST). All rights reserved.
68
* $COPYRIGHT$
79
*
810
* Additional copyrights may follow
@@ -388,7 +390,7 @@ static void mca_pml_fence_complete_cb(int status, void *fenced)
388390

389391
int mca_pml_ucx_del_procs(struct ompi_proc_t **procs, size_t nprocs)
390392
{
391-
int fenced = 0;
393+
volatile int fenced = 0;
392394
ompi_proc_t *proc;
393395
size_t num_reqs, max_reqs;
394396
void *dreq, **dreqs;

0 commit comments

Comments
 (0)