Skip to content

Commit 1b01b6d

Browse files
authored
Merge pull request #2213 from hjelmn/osc_rdma
osc/rdma: fix warnings
2 parents 5c99d09 + e8ef503 commit 1b01b6d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ompi/mca/osc/rdma/osc_rdma_accumulate.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ static inline int ompi_osc_rdma_cas_atomic (ompi_osc_rdma_sync_t *sync, const vo
521521
flags = (4 == size) ? MCA_BTL_ATOMIC_FLAG_32BIT : 0;
522522

523523
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "initiating compare-and-swap using %d-bit btl atomics. compare: 0x%"
524-
PRIx64 ", origin: 0x%" PRIx64, size * 8, *((int64_t *) compare_addr), *((int64_t *) source_addr));
524+
PRIx64 ", origin: 0x%" PRIx64, (int) size * 8, *((int64_t *) compare_addr), *((int64_t *) source_addr));
525525

526526
ret = ompi_osc_rdma_frag_alloc (module, 24, &frag, &ptr);
527527
if (OPAL_UNLIKELY(OMPI_SUCCESS != ret)) {
@@ -666,11 +666,10 @@ static int ompi_osc_rdma_fetch_and_op_cas (ompi_osc_rdma_sync_t *sync, const voi
666666
mca_btl_base_registration_handle_t *target_handle, ompi_op_t *op, ompi_osc_rdma_request_t *req)
667667
{
668668
ompi_osc_rdma_module_t *module = sync->module;
669-
int32_t atomic_flags = module->selected_btl->btl_atomic_flags;
670669
ompi_osc_rdma_frag_t *frag = NULL;
671670
uint64_t address, offset;
672671
char *ptr = NULL;
673-
int ret, btl_op;
672+
int ret;
674673

675674
if (extent > 8) {
676675
return OMPI_ERR_NOT_SUPPORTED;
@@ -1193,7 +1192,6 @@ int ompi_osc_rdma_fetch_and_op (const void *origin_addr, void *result_addr, ompi
11931192
ompi_osc_rdma_module_t *module = GET_MODULE(win);
11941193
ompi_osc_rdma_peer_t *peer;
11951194
ompi_osc_rdma_sync_t *sync;
1196-
int ret;
11971195

11981196
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "fop: %p, %s, %d, %lu, %s, %s", result_addr, dt->name,
11991197
target_rank, (unsigned long) target_disp, op->o_name, win->w_name);

ompi/mca/osc/rdma/osc_rdma_comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ static int ompi_osc_rdma_get_contig (ompi_osc_rdma_sync_t *sync, ompi_osc_rdma_p
732732
}
733733
} else {
734734
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "using internal buffer %p in fragment %p for get of size %lu bytes, source address 0x%lx",
735-
ptr, (void *) frag, aligned_len, (unsigned long) aligned_source_base);
735+
ptr, (void *) frag, (unsigned long) aligned_len, (unsigned long) aligned_source_base);
736736
local_handle = frag->handle;
737737
}
738738
}

0 commit comments

Comments
 (0)