]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: do not capture unused variables
authorKefu Chai <kchai@redhat.com>
Sun, 5 Jan 2020 14:15:24 +0000 (22:15 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 5 Jan 2020 14:27:03 +0000 (22:27 +0800)
commitba0fc1fef3590da3edeb8294093d276e9c5cb6ca
treeeabc25ad160cdec356f3d30893bb8829d93ae5ae
parentacd4de57c407662bfbd9256f06b4477acc7a4556
crimson: do not capture unused variables

to silence warnings like

src/crimson/net/Socket.cc:93:41: warning: lambda capture 'this' is not
used [-Wunused-lambda-capture]
    return in.read_exactly(bytes).then([this](auto buf) {
                                        ^~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc
src/crimson/net/Interceptor.h
src/crimson/net/Socket.cc