Skip to content

Fix warning about implicit capture of 'this' with '='#22083

Merged
acozzette merged 1 commit intoprotocolbuffers:29.xfrom
acozzette:this-capture
Jun 4, 2025
Merged

Fix warning about implicit capture of 'this' with '='#22083
acozzette merged 1 commit intoprotocolbuffers:29.xfrom
acozzette:this-capture

Conversation

@acozzette
Copy link

The compiler warns about this if you build with
-Wdeprecated-this-capture.

The code has been changed in such a way that this issue no longer exists in 30.0 and newer, so this fix should be merged directly to 29.x instead of being cherry-picked.

Fixes #22072.

@acozzette acozzette requested a review from a team as a code owner June 3, 2025 20:17
@acozzette acozzette requested review from sbenzaquen and removed request for a team June 3, 2025 20:17
@acozzette acozzette added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jun 3, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jun 3, 2025
@acozzette acozzette requested a review from honglooker June 3, 2025 20:37
@acozzette acozzette added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jun 4, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jun 4, 2025
The compiler warns about this if you build with
`-Wdeprecated-this-capture`.

The code has been changed in such a way that this issue no longer exists
in 30.0 and newer, so this fix should be merged directly to 29.x instead
of being cherry-picked.

Fixes protocolbuffers#22072.
@acozzette acozzette added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jun 4, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jun 4, 2025
@acozzette acozzette merged commit afede60 into protocolbuffers:29.x Jun 4, 2025
175 of 177 checks passed
@acozzette acozzette deleted the this-capture branch June 4, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants