]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PG: capture variables explicitly
authorKefu Chai <tchaikov@gmail.com>
Sat, 30 Jul 2022 11:18:40 +0000 (19:18 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 30 Jul 2022 11:46:42 +0000 (19:46 +0800)
commit81fdfb45909d01ee4412435b7349a010b931adca
tree4dd56ddb3bcc59e60c82946413e8b5b344414bf2
parentcfcab5a9ddff0d44766c80b117b9f6ad00ebc626
osd/PG: capture variables explicitly

to silence warning if compiled with -std=c++20:

src/osd/PG.h:571:7: warning: implicit capture of ‘this’ via ‘[=]’ is
deprecated in C++20 [-Wdeprecated]
  571 |       [=](auto &history, auto &stats) {
      |       ^

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/osd/PG.h