summaryrefslogtreecommitdiffstats
path: root/src/msg
diff options
context:
space:
mode:
authorAdam C. Emerson <aemerson@redhat.com>2018-05-09 01:29:41 +0200
committerAdam C. Emerson <aemerson@redhat.com>2018-05-09 19:26:29 +0200
commit7a551495d96ab984ef01cbadfddfe2055b44852f (patch)
treed369d201450fb6d925eb4c5a845b456728c7edf8 /src/msg
parentmsg/rdma/infiniband: Silence memset warning (diff)
downloadceph-7a551495d96ab984ef01cbadfddfe2055b44852f.tar.xz
ceph-7a551495d96ab984ef01cbadfddfe2055b44852f.zip
rdma: Silence qualifier warnings
No point in reinterpret_casting something const anyway, you can always assign non-const to const. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to '')
-rw-r--r--src/msg/async/rdma/RDMAConnectedSocketImpl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msg/async/rdma/RDMAConnectedSocketImpl.cc b/src/msg/async/rdma/RDMAConnectedSocketImpl.cc
index 2bb7a2cf3ff..eca63e6054b 100644
--- a/src/msg/async/rdma/RDMAConnectedSocketImpl.cc
+++ b/src/msg/async/rdma/RDMAConnectedSocketImpl.cc
@@ -459,7 +459,7 @@ ssize_t RDMAConnectedSocketImpl::submit(bool more)
unsigned total_copied = 0;
Chunk *current_chunk = tx_buffers[chunk_idx];
while (start != end) {
- const uintptr_t addr = reinterpret_cast<const uintptr_t>(start->c_str());
+ const uintptr_t addr = reinterpret_cast<uintptr_t>(start->c_str());
unsigned copied = 0;
while (copied < start->length()) {
uint32_t r = current_chunk->write((char*)addr+copied, start->length() - copied);