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 <[email protected]>
  • Loading branch information
Matan-B committed Feb 10, 2025
1 parent e053720 commit f6dcc93
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 @@ -440,7 +440,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 f6dcc93

Please sign in to comment.