mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Delete unused found_init variable
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]
			
			
This commit is contained in:
		
							parent
							
								
									8bf9cb407d
								
							
						
					
					
						commit
						88f20fa4dd
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -28,12 +28,9 @@ PRIVATE_NAMESPACE_BEGIN
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void proc_init(RTLIL::Module *mod, SigMap &sigmap, RTLIL::Process *proc)
 | 
					void proc_init(RTLIL::Module *mod, SigMap &sigmap, RTLIL::Process *proc)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	bool found_init = false;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	for (auto &sync : proc->syncs)
 | 
						for (auto &sync : proc->syncs)
 | 
				
			||||||
		if (sync->type == RTLIL::SyncType::STi)
 | 
							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());
 | 
								log("Found init rule in `%s.%s'.\n", mod->name.c_str(), proc->name.c_str());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			for (auto &action : sync->actions)
 | 
								for (auto &action : sync->actions)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue