fd-util: add some (void) casts
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Dec 2017 12:03:35 +0000 (13:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 10:48:21 +0000 (11:48 +0100)
src/basic/fd-util.c

index a4a5c6b..284d029 100644 (file)
@@ -192,9 +192,9 @@ int fd_cloexec(int fd, bool cloexec) {
 }
 
 void stdio_unset_cloexec(void) {
-        fd_cloexec(STDIN_FILENO, false);
-        fd_cloexec(STDOUT_FILENO, false);
-        fd_cloexec(STDERR_FILENO, false);
+        (void) fd_cloexec(STDIN_FILENO, false);
+        (void) fd_cloexec(STDOUT_FILENO, false);
+        (void) fd_cloexec(STDERR_FILENO, false);
 }
 
 _pure_ static bool fd_in_set(int fd, const int fdset[], unsigned n_fdset) {