Skip to content

Commit

Permalink
Voidify write() calls. Fixes #3174.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Nov 3, 2014
1 parent 5cd0c42 commit f2d9aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/builtin/system.cpp
Expand Up @@ -384,7 +384,7 @@ namespace rubinius {
strerror(errno), command_line.str().c_str());

int error_no = errno;
write(fds[1], &error_no, sizeof(int));
(void)write(fds[1], &error_no, sizeof(int));
close(fds[1]);

exit(1);
Expand Down Expand Up @@ -507,7 +507,7 @@ namespace rubinius {
strerror(errno), exe.command());

int error_no = errno;
write(errors[1], &error_no, sizeof(int));
(void)write(errors[1], &error_no, sizeof(int));
close(errors[1]);

exit(1);
Expand Down

0 comments on commit f2d9aa6

Please sign in to comment.