diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-10-07 22:25:29 +0300 |
---|---|---|
committer | gengjiawen <technicalcute@gmail.com> | 2020-10-08 12:51:09 +0300 |
commit | ee5f849fda6afcedb3a39bb07a29a771f87d7676 (patch) | |
tree | d38995f7cfdfcf343de3e09b88fdf29106394e1f /src/env.cc | |
parent | ccc822c7c8f4a205323231b000b7920d8a04cb26 (diff) |
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>
Diffstat (limited to 'src/env.cc')
-rw-r--r-- | src/env.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.cc b/src/env.cc index 15e45446c18..4cdc4e3d1ba 100644 --- a/src/env.cc +++ b/src/env.cc @@ -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()); |