From 37e7b5dfc7836f7be7310a097d6129d746287b89 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Thu, 13 Apr 2023 12:11:39 +0100 Subject: [PATCH] Fix unused/hard-coded argument No functional change. --- src/V3Sched.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/V3Sched.cpp b/src/V3Sched.cpp index c1652e040..71e6ecdc9 100644 --- a/src/V3Sched.cpp +++ b/src/V3Sched.cpp @@ -311,10 +311,11 @@ struct TriggerKit { // No VL_UNCOPYABLE(TriggerKit) as causes C++20 errors on MSVC // Utility that assigns the given index trigger to fire when the given variable is zero - void addFirstIterationTriggerAssignment(AstVarScope* counterp, uint32_t /*index*/) const { + void addFirstIterationTriggerAssignment(AstVarScope* counterp, uint32_t index) const { FileLine* const flp = counterp->fileline(); AstVarRef* const vrefp = new AstVarRef{flp, m_vscp, VAccess::WRITE}; - AstCMethodHard* const callp = new AstCMethodHard{flp, vrefp, "at", new AstConst{flp, 0}}; + AstCMethodHard* const callp + = new AstCMethodHard{flp, vrefp, "at", new AstConst{flp, index}}; callp->dtypeSetBit(); callp->pure(true); m_funcp->stmtsp()->addHereThisAsNext(new AstAssign{