From 78cde14c45daf6b492119ae66f7315d73040b9f6 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 7 Oct 2020 21:25:29 +0200 Subject: [PATCH] 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 Backport-PR-URL: https://github.com/nodejs/node/pull/38786 Reviewed-By: Colin Ihrig Reviewed-By: Shelley Vohr Reviewed-By: Gus Caplan Reviewed-By: Gireesh Punathil Reviewed-By: Jiawen Geng --- src/env.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.cc b/src/env.cc index dc67a0e5f98196..9d7a1b21e6c9e9 100644 --- a/src/env.cc +++ b/src/env.cc @@ -1064,7 +1064,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());