ruby-changes:51751
From: normal <ko1@a...>
Date: Fri, 13 Jul 2018 15:05:49 +0900 (JST)
Subject: [ruby-changes:51751] normal:r63963 (trunk): process.c (assert_close_on_exec): quiet warning about unused result
normal 2018-07-13 15:05:43 +0900 (Fri, 13 Jul 2018) New Revision: 63963 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63963 Log: process.c (assert_close_on_exec): quiet warning about unused result Not much we can do if writing to STDERR_FILENO fails. Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 63962) +++ process.c (revision 63963) @@ -295,7 +295,7 @@ assert_close_on_exec(int fd) https://github.com/ruby/ruby/blob/trunk/process.c#L295 int flags = fcntl(fd, F_GETFD); if (flags == -1) { static const char m[] = "reserved FD closed unexpectedly?\n"; - write(2, m, sizeof(m) - 1); + (void)write(2, m, sizeof(m) - 1); return; } if (flags & FD_CLOEXEC) return; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/