mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 22:44:01 +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': {
|
case 'd': {
|
||||||
desc = w.woptarg;
|
desc = w.woptarg;
|
||||||
|
assert(desc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'u': {
|
case 'u': {
|
||||||
|
@ -249,6 +250,7 @@ maybe_t<int> builtin_complete(parser_t &parser, io_streams_t &streams, wchar_t *
|
||||||
}
|
}
|
||||||
case 'a': {
|
case 'a': {
|
||||||
comp = w.woptarg;
|
comp = w.woptarg;
|
||||||
|
assert(comp);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'e': {
|
case 'e': {
|
||||||
|
@ -257,6 +259,7 @@ maybe_t<int> builtin_complete(parser_t &parser, io_streams_t &streams, wchar_t *
|
||||||
}
|
}
|
||||||
case 'n': {
|
case 'n': {
|
||||||
condition = w.woptarg;
|
condition = w.woptarg;
|
||||||
|
assert(condition);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'w': {
|
case 'w': {
|
||||||
|
|
Loading…
Reference in a new issue