Skip to content

Commit

Permalink
src: fix compiler warning in env.cc
Browse files Browse the repository at this point in the history
     ../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 <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>
  • Loading branch information
addaleax authored and gengjiawen committed Oct 8, 2020
1 parent ccc822c commit ee5f849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.cc
Expand Up @@ -1224,7 +1224,7 @@ void Environment::VerifyNoStrongBaseObjects() {

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

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

0 comments on commit ee5f849

Please sign in to comment.