]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rdma: Silence qualifier warnings
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 8 May 2018 23:29:41 +0000 (19:29 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 May 2018 17:26:29 +0000 (13:26 -0400)
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>
src/msg/async/rdma/RDMAConnectedSocketImpl.cc

index 2bb7a2cf3ff3b1b0d6cd520338d977408e38a6d3..eca63e6054b9d3584cdc88e063a1cd0f65385233 100644 (file)
@@ -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);