* pex-unix.c (writeerr): Cast write result to void.

From-SVN: r120702
This commit is contained in:
Ben Elliston 2007-01-12 02:21:26 +00:00 committed by Ben Elliston
parent 179cd3d3f8
commit 1a8e58a38f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2007-01-12 Ben Elliston <bje@au.ibm.com>
* pex-unix.c (writeerr): Cast write result to void.
* choose-temp.c (choose_temp_base): Check the result of the call
to mktemp rather than testing the length of the modified string.

View File

@ -339,7 +339,7 @@ static void
pex_child_error (struct pex_obj *obj, const char *executable,
const char *errmsg, int err)
{
#define writeerr(s) write (STDERR_FILE_NO, s, strlen (s))
#define writeerr(s) (void) write (STDERR_FILE_NO, s, strlen (s))
writeerr (obj->pname);
writeerr (": error trying to exec '");
writeerr (executable);