mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix a warning with g++ about an unused function result
This commit is contained in:
parent
78af59f40c
commit
deacec07bf
1 changed files with 4 additions and 1 deletions
|
@ -1150,7 +1150,10 @@ void completer_t::complete_cmd(const wcstring &str_cmd, bool use_function, bool
|
|||
}
|
||||
if (use_implicit_cd)
|
||||
{
|
||||
(void)expand_string(str_cmd, this->completions, ACCEPT_INCOMPLETE | DIRECTORIES_ONLY | this->expand_flags(), NULL);
|
||||
if (!expand_string(str_cmd, this->completions, ACCEPT_INCOMPLETE | DIRECTORIES_ONLY | this->expand_flags(), NULL))
|
||||
{
|
||||
// Not valid as implicit cd.
|
||||
}
|
||||
}
|
||||
if (str_cmd.find(L'/') == wcstring::npos && str_cmd.at(0) != L'~')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue