]> 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:47:14 +0000 (19:47 +0800)
commitf5fc9b869aec246dfd5efe7fd2c0b6d5f79545cb
tree92b66ee4d14fe86398d137bf3e50a08557058ffb
parent1ee0fd839cc6ec488f0aa4ec8360f5d6523e4a16
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