Skip to content

Commit 958e29f

Browse files
committed
osc/rdma: silence a warning
declare a local variable volatile and silence CID 1372692
1 parent 1b01b6d commit 958e29f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/mca/osc/rdma/osc_rdma_accumulate.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/*
33
* Copyright (c) 2014-2016 Los Alamos National Security, LLC. All rights
44
* reserved.
5+
* Copyright (c) 2016 Research Organization for Information Science
6+
* and Technology (RIST). All rights reserved.
57
* $COPYRIGHT$
68
*
79
* Additional copyrights may follow
@@ -689,7 +691,7 @@ static int ompi_osc_rdma_fetch_and_op_cas (ompi_osc_rdma_sync_t *sync, const voi
689691

690692
/* store the destination in the temporary buffer */
691693
do {
692-
bool complete = false;
694+
volatile bool complete = false;
693695

694696
ret = ompi_osc_get_data_blocking (module, peer->data_endpoint, address, target_handle, ptr, 8);
695697
if (OMPI_SUCCESS != ret) {

0 commit comments

Comments
 (0)