mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +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: | 						case RTLIL::STa: | ||||||
| 							break; | 							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
 | 						// Handling of init-type sync rules is delegated to the `proc_init` pass, so we can use the wire
 | ||||||
| 						// attribute regardless of input.
 | 						// attribute regardless of input.
 | ||||||
| 						case RTLIL::STi: | 						case RTLIL::STi: | ||||||
| 							log_assert(false); | 							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