Skip to content

Commit 78cde14

Browse files
addaleaxtargos
authored andcommitted
src: fix compiler warning in env.cc
../src/env.cc:1227:22: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture] ForEachBaseObject([this](BaseObject* obj) { ^~~~ PR-URL: #35547 Backport-PR-URL: #38786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
1 parent ea311a4 commit 78cde14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ void Environment::VerifyNoStrongBaseObjects() {
10641064

10651065
if (!options()->verify_base_objects) return;
10661066

1067-
ForEachBaseObject([this](BaseObject* obj) {
1067+
ForEachBaseObject([](BaseObject* obj) {
10681068
if (obj->IsNotIndicativeOfMemoryLeakAtExit()) return;
10691069
fprintf(stderr, "Found bad BaseObject during clean exit: %s\n",
10701070
obj->MemoryInfoName().c_str());

0 commit comments

Comments
 (0)