mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Try to suppress warning on some CI
http://ci.rvm.jp/results/trunk-asserts-nopara@silicon-docker/1149270 ``` /home/ko1/ruby/src/trunk-asserts-nopara/process.c: In function 'assert_close_on_exec': /home/ko1/ruby/src/trunk-asserts-nopara/process.c:298:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void)write(2, m, sizeof(m) - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` workaround from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c34 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
728b75bc9b
commit
004f55212d
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ assert_close_on_exec(int fd)
|
|||
int flags = fcntl(fd, F_GETFD);
|
||||
if (flags == -1) {
|
||||
static const char m[] = "reserved FD closed unexpectedly?\n";
|
||||
(void)write(2, m, sizeof(m) - 1);
|
||||
(void)!write(2, m, sizeof(m) - 1);
|
||||
return;
|
||||
}
|
||||
if (flags & FD_CLOEXEC) return;
|
||||
|
|
Loading…
Reference in a new issue