2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01: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:
Benjamin Barenblat 2015-08-15 15:39:45 -04:00
parent cebf245504
commit 7cd5a653ff
No known key found for this signature in database
GPG key ID: 9E730149EB91C53B

View file

@ -66,8 +66,9 @@ const char* GetLogClassName(Class log_class) {
ALL_LOG_CLASSES()
#undef CLS
#undef SUB
case Class::Count:
UNREACHABLE();
}
return "Unknown";
}
const char* GetLevelName(Level log_level) {