diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-18 06:21:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-18 06:21:04 +0000 |
commit | 3229c32008a9a1a3d83463ccbcd97013c10668d7 (patch) | |
tree | 32bf37ecbf553e7164f3c26437ce8fb8484aa167 /process.c | |
parent | 1128e61562bd05ade1afcc8b2a7b52a37b7818e6 (diff) | |
download | ruby-3229c32008a9a1a3d83463ccbcd97013c10668d7.tar.gz |
* 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |