From ee5f849fda6afcedb3a39bb07a29a771f87d7676 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 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 15e45446c18ce2..4cdc4e3d1ba79e 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());