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:
Aaron Gyes
2016-07-30 11:48:39 -07:00
parent acfd380176
commit ee26eafc25
9 changed files with 30 additions and 16 deletions

View File

@@ -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) {