Skip to content

Commit

Permalink
rpc: 'size' in capture list does not name a variable
Browse files Browse the repository at this point in the history
clang 14:
```
/home/jenkins-build/build/workspace/ceph-pull-requests/src/seastar/src/rpc/rpc.cc:438:81: error: 'size' in capture list does not name a variable
              return read_rcv_buf(in, size).then([this, info, h = std::move(h), size] (rcv_buf rb) {

```

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
  • Loading branch information
Matan-B authored and NitzanMordhai committed Aug 4, 2024
1 parent a40279c commit 817724a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/rpc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ namespace rpc {
if (!size) {
return make_ready_future<typename FrameType::return_type>(FrameType::make_value(h, rcv_buf()));
} else {
return read_rcv_buf(in, size).then([this, info, h = std::move(h), size] (rcv_buf rb) {
return read_rcv_buf(in, size).then([this, info, h = std::move(h), size=size] (rcv_buf rb) {
if (rb.size != size) {
_logger(info, format("unexpected eof on a {} while reading data: expected {:d} got {:d}", FrameType::role(), size, rb.size));
return make_ready_future<typename FrameType::return_type>(FrameType::empty_value());
Expand Down

0 comments on commit 817724a

Please sign in to comment.