mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 19:56:16 +08:00
Add parens to silence warning
This triggered -Wparentheses in gcc 10.1.0
This commit is contained in:
parent
3dcb39f8ec
commit
103a4ece81
|
@ -431,7 +431,7 @@ static void process_mark_finished_children(parser_t &parser, bool block_ok) {
|
|||
// Ok, we are reapable. Run waitpid()!
|
||||
int statusv = -1;
|
||||
pid_t pid = waitpid(proc->pid, &statusv, WNOHANG | WUNTRACED | WCONTINUED);
|
||||
assert(pid <= 0 || pid == proc->pid && "Unexpcted waitpid() return");
|
||||
assert((pid <= 0 || pid == proc->pid) && "Unexpcted waitpid() return");
|
||||
if (pid <= 0) continue;
|
||||
|
||||
// The process has stopped or exited! Update its status.
|
||||
|
|
Loading…
Reference in New Issue
Block a user