Skip to content

osd/PG: capture this explicitly - #47367

Merged
tchaikov merged 1 commit into
ceph:mainfrom
tchaikov:wip-osd-capture-this
Jul 30, 2022
Merged

tchaikov merged 1 commit into
ceph:mainfrom
tchaikov:wip-osd-capture-this

Conversation

@tchaikov

Copy link
Copy Markdown
Contributor

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 [email protected]

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@tchaikov
tchaikov requested a review from a team as a code owner July 30, 2022 11:24
@tchaikov
tchaikov requested review from adamemerson and cbodley July 30, 2022 11:24
@github-actions github-actions Bot added the core label Jul 30, 2022
@tchaikov tchaikov mentioned this pull request Jul 30, 2022
1 task done
@tchaikov
tchaikov force-pushed the wip-osd-capture-this branch from 407ed66 to 6475bc9 Compare July 30, 2022 11:33
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 <[email protected]>
@tchaikov
tchaikov force-pushed the wip-osd-capture-this branch from 6475bc9 to f5fc9b8 Compare July 30, 2022 11:47
@tchaikov
tchaikov merged commit 56ac13e into ceph:main Jul 30, 2022
@tchaikov
tchaikov deleted the wip-osd-capture-this branch July 30, 2022 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants