mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 20:21:16 -03:00
Ensure we continue to cover enums in switches
Where we already manage to cover an enum entirely in a switch statement such that default: cannot be reached, help ensure it stays that way by condemning that route. Also adjust a 'const' I came across that is ignored.
This commit is contained in:
@@ -280,7 +280,10 @@ static void universal_callback(fish_message_type_t type, const wchar_t *name, co
|
||||
str = L"ERASE";
|
||||
break;
|
||||
}
|
||||
default: { break; }
|
||||
default: {
|
||||
assert(0 && "Unhandled fish_message_type_t constant!");
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
if (str) {
|
||||
|
||||
Reference in New Issue
Block a user