]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: silence -Wunused-lambda-capture warning 23430/head
authorKefu Chai <kchai@redhat.com>
Fri, 3 Aug 2018 11:50:26 +0000 (19:50 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 3 Aug 2018 12:41:03 +0000 (20:41 +0800)
ceph/src/mgr/DaemonServer.cc:1772:17: warning: lambda capture 'host' is
not used [-Wunused-lambda-capture]
          devid, [&f, &host] (const DeviceState& dev) {
                       ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/DaemonServer.cc

index d94e663ae1e0eca3fe86bf49be44674fdce199e5..6e0eb4a38ae2e7a70c9b60cdac3ccbea1f33dc8a 100644 (file)
@@ -1769,7 +1769,7 @@ bool DaemonServer::handle_command(MCommand *m)
       f->open_array_section("devices");
       for (auto& devid : devids) {
        daemon_state.with_device(
-         devid, [&f, &host] (const DeviceState& dev) {
+         devid, [&f] (const DeviceState& dev) {
            f->dump_object("device", dev);
          });
       }