diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 10:25:32 +0900 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:50:03 +0200 |
commit | 393a9d4f697701965a22eda113867c6fa6f687f4 (patch) | |
tree | 3cc751474f511e9fa0f4c042dd7447925835d06d /src/basic | |
parent | 1b875390c6c97ecb23f074a1f6141b852da23bf7 (diff) |
exec-util: cast to void when return value is ignored
CID 1384262.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/exec-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c index e195bf985..246cc4f4f 100644 --- a/src/basic/exec-util.c +++ b/src/basic/exec-util.c @@ -67,7 +67,7 @@ static int do_spawn(const char *path, char *argv[], int stdout_fd, pid_t *pid) { dup2(stdout_fd, STDOUT_FILENO) < 0) return -errno; - fd_cloexec(STDOUT_FILENO, false); + (void) fd_cloexec(STDOUT_FILENO, false); } if (!argv) { |