Skip to content

Commit 739d2d8

Browse files
committed
Make some variables const to fix compiler warnings
Signed-off-by: Jeff Squyres <jeff@squyres.com>
1 parent a4039d4 commit 739d2d8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ompi/mca/coll/inter/coll_inter_allreduce.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ mca_coll_inter_allreduce_inter(const void *sbuf, void *rbuf, int count,
4949
mca_coll_base_module_t *module)
5050
{
5151
int err, rank, root = 0;
52-
char *tmpbuf = NULL, *pml_buffer = NULL, *source;
52+
char *tmpbuf = NULL, *pml_buffer = NULL;
53+
const char *source;
5354
ptrdiff_t gap, span;
5455

5556
rank = ompi_comm_rank(comm);

ompi/mca/osc/rdma/osc_rdma.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* Copyright (c) 2020-2021 Google, LLC. All rights reserved.
1919
* Copyright (c) 2022 Amazon.com, Inc. or its affiliates.
2020
* All Rights reserved.
21+
* Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
2122
* $COPYRIGHT$
2223
*
2324
* Additional copyrights may follow
@@ -753,7 +754,7 @@ static inline int osc_rdma_accelerator_mem_move(void *dest, const void *src, siz
753754
* @retval >0 The buffer belongs to a managed buffer in
754755
* device memory.
755756
*/
756-
static inline int osc_rdma_is_accel(void *buf)
757+
static inline int osc_rdma_is_accel(const void *buf)
757758
{
758759
int dev_id;
759760
uint64_t flags;

0 commit comments

Comments
 (0)