From e1b66566738d4d300bda88d467675f311b4afdcf Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Mon, 28 Jan 2019 11:38:22 +0100 Subject: Some return values are ignored in configd. --- configd/src/apps/sentinel/service.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configd/src') diff --git a/configd/src/apps/sentinel/service.cpp b/configd/src/apps/sentinel/service.cpp index e70304efcb5..ebf96d2ed53 100644 --- a/configd/src/apps/sentinel/service.cpp +++ b/configd/src/apps/sentinel/service.cpp @@ -375,7 +375,7 @@ Service::runChild(int pipes[2]) char buf[200]; snprintf(buf, sizeof buf, "open /dev/null for fd 0: got %d " "(%s)", fd, strerror(errno)); - (void) write(pipes[1], buf, strlen(buf)); + [[maybe_unused]] auto writeRes = write(pipes[1], buf, strlen(buf)); _exit(EXIT_FAILURE); } fcntl(0, F_SETFD, 0); // Don't close on exec @@ -385,7 +385,7 @@ Service::runChild(int pipes[2]) char buf[200]; snprintf(buf, sizeof buf, "exec error: %s for /bin/sh -c '%s'", strerror(errno), _config->command.c_str()); - (void) write(pipes[1], buf, strlen(buf)); + [[maybe_unused]] auto writeRes = write(pipes[1], buf, strlen(buf)); _exit(EXIT_FAILURE); } -- cgit v1.2.3