Delete unused found_init variable
authorRupert Swarbrick <rswarbrick@gmail.com>
Wed, 14 Jul 2021 09:19:07 +0000 (10:19 +0100)
committerRupert Swarbrick <rswarbrick@gmail.com>
Wed, 14 Jul 2021 09:19:07 +0000 (10:19 +0100)
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

index 841bce400d50b026aeabc56a6fd226c24408dbce..4da20c3953959cd9f92be6327e84c9d8973e9cd5 100644 (file)
@@ -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)