Skip to content

Commit ee5f849

Browse files
addaleaxgengjiawen
authored andcommittedOct 8, 2020
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 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
1 parent ccc822c commit ee5f849

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
@@ -1224,7 +1224,7 @@ void Environment::VerifyNoStrongBaseObjects() {
12241224

12251225
if (!options()->verify_base_objects) return;
12261226

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

0 commit comments

Comments
 (0)
Please sign in to comment.