mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Reorder cases to avoid fall-through warning
log_assert(false) never returns and thus can't fall through, but gcc doesn't seem to think that far. Making it the last case avoids the problem entirely.
This commit is contained in:
		
							parent
							
								
									695150b037
								
							
						
					
					
						commit
						d86fc791f9
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -1943,13 +1943,13 @@ struct CxxrtlWorker { | |||
| 						case RTLIL::STa: | ||||
| 							break; | ||||
| 
 | ||||
| 						case RTLIL::STg: | ||||
| 							log_cmd_error("Global clock is not supported.\n"); | ||||
| 
 | ||||
| 						// Handling of init-type sync rules is delegated to the `proc_init` pass, so we can use the wire
 | ||||
| 						// attribute regardless of input.
 | ||||
| 						case RTLIL::STi: | ||||
| 							log_assert(false); | ||||
| 
 | ||||
| 						case RTLIL::STg: | ||||
| 							log_cmd_error("Global clock is not supported.\n"); | ||||
| 					} | ||||
| 			} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue