From 0a664f1b15c009ed4b0335d9ddd754efe4f7d324 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 10 Jan 2018 10:25:32 +0900 Subject: [PATCH] exec-util: cast to void when return value is ignored CID 1384262. --- src/basic/exec-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c index a97295a..0829b3d 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) { -- 2.7.4