mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Workaround clang-tidy incorrectly assuming null
This silences a false positive linter warning about a null dereference.
This commit is contained in:
parent
8fc9b9d61b
commit
801955851b
1 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,7 @@ maybe_t<int> builtin_complete(parser_t &parser, io_streams_t &streams, wchar_t *
|
|||
}
|
||||
case 'd': {
|
||||
desc = w.woptarg;
|
||||
assert(desc);
|
||||
break;
|
||||
}
|
||||
case 'u': {
|
||||
|
@ -249,6 +250,7 @@ maybe_t<int> builtin_complete(parser_t &parser, io_streams_t &streams, wchar_t *
|
|||
}
|
||||
case 'a': {
|
||||
comp = w.woptarg;
|
||||
assert(comp);
|
||||
break;
|
||||
}
|
||||
case 'e': {
|
||||
|
@ -257,6 +259,7 @@ maybe_t<int> builtin_complete(parser_t &parser, io_streams_t &streams, wchar_t *
|
|||
}
|
||||
case 'n': {
|
||||
condition = w.woptarg;
|
||||
assert(condition);
|
||||
break;
|
||||
}
|
||||
case 'w': {
|
||||
|
|
Loading…
Reference in a new issue