From 14ec6258d999a8df38d45f1283e73e1338f37eab Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 30 Aug 2025 08:22:22 -0400 Subject: [PATCH] Internals: Fix compiler warning last commit --- src/V3Simulate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Simulate.h b/src/V3Simulate.h index 789905885..d376ba648 100644 --- a/src/V3Simulate.h +++ b/src/V3Simulate.h @@ -1238,7 +1238,7 @@ private: // Clear output variable initVar(VN_CAST(funcp->fvarp(), Var)); // Clear other automatic variables - funcp->foreach([this, &oldValues](AstVar* varp) { + funcp->foreach([this](AstVar* varp) { if (varp->lifetime().isAutomatic() && !varp->isIO()) initVar(varp); }); }