mirror of https://github.com/nodejs/node.git
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
parent
ccc822c7c8
commit
ee5f849fda
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue