From 24bb9b72bd87d1226dead329efcc2967257e07a2 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Fri, 12 Jan 2007 02:21:52 +0000 Subject: [PATCH] * pex-unix.c (writeerr): Cast write result to void. --- libiberty/ChangeLog | 2 ++ libiberty/pex-unix.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 80f1cfc3d..608d4300e 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,5 +1,7 @@ 2007-01-12 Ben Elliston + * 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. diff --git a/libiberty/pex-unix.c b/libiberty/pex-unix.c index c5fa98481..a7760415e 100644 --- a/libiberty/pex-unix.c +++ b/libiberty/pex-unix.c @@ -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); -- 2.11.4.GIT