mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Fix unused return value warning a different way
This commit is contained in:
parent
798537d47b
commit
4683ce2771
1 changed files with 6 additions and 2 deletions
|
@ -727,7 +727,9 @@ static void exec_prompt()
|
||||||
{
|
{
|
||||||
wcstring_list_t prompt_list;
|
wcstring_list_t prompt_list;
|
||||||
// status is ignored
|
// status is ignored
|
||||||
__mark_as_unused int status = exec_subshell(data->left_prompt, prompt_list);
|
if (exec_subshell(data->left_prompt, prompt_list))
|
||||||
|
{
|
||||||
|
}
|
||||||
for (size_t i = 0; i < prompt_list.size(); i++)
|
for (size_t i = 0; i < prompt_list.size(); i++)
|
||||||
{
|
{
|
||||||
if (i > 0) data->left_prompt_buff += L'\n';
|
if (i > 0) data->left_prompt_buff += L'\n';
|
||||||
|
@ -739,7 +741,9 @@ static void exec_prompt()
|
||||||
{
|
{
|
||||||
wcstring_list_t prompt_list;
|
wcstring_list_t prompt_list;
|
||||||
// status is ignored
|
// status is ignored
|
||||||
__mark_as_unused int status = exec_subshell(data->right_prompt, prompt_list);
|
if (exec_subshell(data->right_prompt, prompt_list))
|
||||||
|
{
|
||||||
|
}
|
||||||
for (size_t i = 0; i < prompt_list.size(); i++)
|
for (size_t i = 0; i < prompt_list.size(); i++)
|
||||||
{
|
{
|
||||||
// Right prompt does not support multiple lines, so just concatenate all of them
|
// Right prompt does not support multiple lines, so just concatenate all of them
|
||||||
|
|
Loading…
Reference in a new issue