From 88f20fa4dd6ec534cb30c4663d53e1f4d90ac07b Mon Sep 17 00:00:00 2001 From: Rupert Swarbrick Date: Wed, 14 Jul 2021 10:19:07 +0100 Subject: [PATCH] Delete unused found_init variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Spotted during compilation: passes/proc/proc_init.cc: In function ‘void {anonymous}::proc_init(Yosys::RTLIL::Module*, Yosys::SigMap&, Yosys::RTLIL::Process*)’: passes/proc/proc_init.cc:31:7: warning: variable ‘found_init’ set but not used [-Wunused-but-set-variable] --- passes/proc/proc_init.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/passes/proc/proc_init.cc b/passes/proc/proc_init.cc index 841bce400..4da20c395 100644 --- a/passes/proc/proc_init.cc +++ b/passes/proc/proc_init.cc @@ -28,12 +28,9 @@ PRIVATE_NAMESPACE_BEGIN void proc_init(RTLIL::Module *mod, SigMap &sigmap, RTLIL::Process *proc) { - bool found_init = false; - for (auto &sync : proc->syncs) if (sync->type == RTLIL::SyncType::STi) { - found_init = true; log("Found init rule in `%s.%s'.\n", mod->name.c_str(), proc->name.c_str()); for (auto &action : sync->actions) -- 2.30.2