aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-unix.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2007-01-12 02:21:52 +0000
committerBen Elliston <bje@au.ibm.com>2007-01-12 02:21:52 +0000
commit0bbe7a79f595b156a9a9ab3042f44d7218b933e0 (patch)
treeedaaa4252af10db0ad2c93238b470790598a8870 /libiberty/pex-unix.c
parentc3c6b70e63ee9d43685ba3645d73a8cf3fd07c80 (diff)
downloadgdb-0bbe7a79f595b156a9a9ab3042f44d7218b933e0.zip
gdb-0bbe7a79f595b156a9a9ab3042f44d7218b933e0.tar.gz
gdb-0bbe7a79f595b156a9a9ab3042f44d7218b933e0.tar.bz2
* pex-unix.c (writeerr): Cast write result to void.
Diffstat (limited to 'libiberty/pex-unix.c')
-rw-r--r--libiberty/pex-unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/pex-unix.c b/libiberty/pex-unix.c
index c5fa984..a776041 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);