mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 18: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:
@@ -5,6 +5,7 @@
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <wchar.h>
|
||||
#include <wctype.h>
|
||||
@@ -759,7 +760,7 @@ bool move_word_state_machine_t::consume_char(wchar_t c) {
|
||||
case move_word_style_whitespace: {
|
||||
return consume_char_whitespace(c);
|
||||
}
|
||||
default: { return false; }
|
||||
default: { abort(); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user