summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-18 06:21:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-18 06:21:04 +0000
commit3229c32008a9a1a3d83463ccbcd97013c10668d7 (patch)
tree32bf37ecbf553e7164f3c26437ce8fb8484aa167 /process.c
parent1128e61562bd05ade1afcc8b2a7b52a37b7818e6 (diff)
* io.c (rb_write_error2, argf_next_argv), process.c (rb_fork_err),
random.c (fill_random_seed): suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index 2c9ef5021a..4abbb48e3c 100644
--- a/process.c
+++ b/process.c
@@ -2486,10 +2486,10 @@ rb_fork_err(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALU
if (!(*chfunc)(charg, errmsg, errmsg_buflen)) _exit(EXIT_SUCCESS);
#ifdef FD_CLOEXEC
err = errno;
- write(ep[1], &err, sizeof(err));
+ (void)write(ep[1], &err, sizeof(err));
if (errmsg && 0 < errmsg_buflen) {
errmsg[errmsg_buflen-1] = '\0';
- write(ep[1], errmsg, strlen(errmsg));
+ (void)write(ep[1], errmsg, strlen(errmsg));
}
#endif
#if EXIT_SUCCESS == 127