Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 4f55fc7

Browse files
ggouaillardethjelmn
authored andcommitted
osc/pt2pt: silence misc warnings
(cherry picked from commit open-mpi/ompi@8faa1ed) Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 1a99354 commit 4f55fc7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

ompi/mca/osc/pt2pt/osc_pt2pt.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* reserved.
1313
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
15-
* Copyright (c) 2015 Research Organization for Information Science
15+
* Copyright (c) 2015-2016 Research Organization for Information Science
1616
* and Technology (RIST). All rights reserved.
1717
* Copyright (c) 2016 FUJITSU LIMITED. All rights reserved.
1818
* $COPYRIGHT$
@@ -151,17 +151,17 @@ static inline void ompi_osc_pt2pt_peer_set_flag (ompi_osc_pt2pt_peer_t *peer, in
151151
}
152152
}
153153

154-
static inline bool ompi_osc_pt2pt_peer_set_locked (ompi_osc_pt2pt_peer_t *peer, bool value)
154+
static inline void ompi_osc_pt2pt_peer_set_locked (ompi_osc_pt2pt_peer_t *peer, bool value)
155155
{
156156
ompi_osc_pt2pt_peer_set_flag (peer, OMPI_OSC_PT2PT_PEER_FLAG_LOCK, value);
157157
}
158158

159-
static inline bool ompi_osc_pt2pt_peer_set_unex (ompi_osc_pt2pt_peer_t *peer, bool value)
159+
static inline void ompi_osc_pt2pt_peer_set_unex (ompi_osc_pt2pt_peer_t *peer, bool value)
160160
{
161161
ompi_osc_pt2pt_peer_set_flag (peer, OMPI_OSC_PT2PT_PEER_FLAG_UNEX, value);
162162
}
163163

164-
static inline bool ompi_osc_pt2pt_peer_set_eager_active (ompi_osc_pt2pt_peer_t *peer, bool value)
164+
static inline void ompi_osc_pt2pt_peer_set_eager_active (ompi_osc_pt2pt_peer_t *peer, bool value)
165165
{
166166
ompi_osc_pt2pt_peer_set_flag (peer, OMPI_OSC_PT2PT_PEER_FLAG_EAGER, value);
167167
}

ompi/mca/osc/pt2pt/osc_pt2pt_component.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Copyright (c) 2006-2008 University of Houston. All rights reserved.
1515
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
1616
* Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
17-
* Copyright (c) 2015 Research Organization for Information Science
17+
* Copyright (c) 2015-2016 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
* $COPYRIGHT$
2020
*
@@ -466,13 +466,13 @@ ompi_osc_pt2pt_get_info(struct ompi_win_t *win, struct ompi_info_t **info_used)
466466

467467
OBJ_CLASS_INSTANCE(ompi_osc_pt2pt_pending_t, opal_list_item_t, NULL, NULL);
468468

469-
void ompi_osc_pt2pt_receive_construct (ompi_osc_pt2pt_receive_t *recv)
469+
static void ompi_osc_pt2pt_receive_construct (ompi_osc_pt2pt_receive_t *recv)
470470
{
471471
recv->buffer = NULL;
472472
recv->pml_request = NULL;
473473
}
474474

475-
void ompi_osc_pt2pt_receive_destruct (ompi_osc_pt2pt_receive_t *recv)
475+
static void ompi_osc_pt2pt_receive_destruct (ompi_osc_pt2pt_receive_t *recv)
476476
{
477477
free (recv->buffer);
478478
if (recv->pml_request && MPI_REQUEST_NULL != recv->pml_request) {

ompi/mca/osc/pt2pt/osc_pt2pt_passive_target.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2010 IBM Corporation. All rights reserved.
1414
* Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
1515
* Copyright (c) 2015 Intel, Inc. All rights reserved.
16-
* Copyright (c) 2015 Research Organization for Information Science
16+
* Copyright (c) 2015-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -324,7 +324,7 @@ static int ompi_osc_pt2pt_lock_internal (int lock_type, int target, int assert,
324324
lock->sync.lock.target = target;
325325
lock->sync.lock.type = lock_type;
326326
lock->sync.lock.assert = assert;
327-
lock->num_peers = (-1 == target) ? ompi_comm_size (&module->comm) : 1;
327+
lock->num_peers = (-1 == target) ? ompi_comm_size (module->comm) : 1;
328328
lock->sync_expected = 0;
329329

330330
/* delay all eager sends until we've heard back.. */

0 commit comments

Comments
 (0)