mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Handle invalid Log::Class
				
					
				
			Add a case of `Log::Class::Count` to the switch statement that dispatches on `Log::Class`. The case simply calls the `UNREACHABLE` macro.
This commit is contained in:
		
							parent
							
								
									cebf245504
								
							
						
					
					
						commit
						7cd5a653ff
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -66,8 +66,9 @@ const char* GetLogClassName(Class log_class) { | ||||||
|         ALL_LOG_CLASSES() |         ALL_LOG_CLASSES() | ||||||
| #undef CLS | #undef CLS | ||||||
| #undef SUB | #undef SUB | ||||||
|  |         case Class::Count: | ||||||
|  |             UNREACHABLE(); | ||||||
|     } |     } | ||||||
|     return "Unknown"; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| const char* GetLevelName(Level log_level) { | const char* GetLevelName(Level log_level) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue