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: https://github.com/nodejs/node/pull/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>
pull/35502/head
Anna Henningsen 2020-10-07 21:25:29 +02:00 committed by gengjiawen
parent ccc822c7c8
commit ee5f849fda
1 changed files with 1 additions and 1 deletions

View File

@ -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());