summaryrefslogtreecommitdiff
path: root/libiberty
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
commit871457419eb7b9a521e3c0755a260348ad65f220 (patch)
tree8e4bb9bb99779c0c7fde6fdf7e0e1eaf01008ea7 /libiberty
parentc14bfa2d6bd301fe0044cfb7bf696d48d988e465 (diff)
downloadgdb-871457419eb7b9a521e3c0755a260348ad65f220.tar.gz
* pex-unix.c (writeerr): Cast write result to void.
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog2
-rw-r--r--libiberty/pex-unix.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 80f1cfc3d3e..608d4300efe 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -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.
diff --git a/libiberty/pex-unix.c b/libiberty/pex-unix.c
index c5fa984817e..a7760415e01 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);