* pex-unix.c (writeerr): Cast write result to void.
authorBen Elliston <bje@au.ibm.com>
Fri, 12 Jan 2007 02:21:52 +0000 (02:21 +0000)
committerBen Elliston <bje@au.ibm.com>
Fri, 12 Jan 2007 02:21:52 +0000 (02:21 +0000)
libiberty/ChangeLog
libiberty/pex-unix.c

index 80f1cfc3d3ee864cb22ec5881127521fac96356a..608d4300efe54f28f58017a60e7031c6b05ff4e1 100644 (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.
 
index c5fa984817e7582a5fd6dc6dc5326ffe9eaf6495..a7760415e012f112a4fb561efea9425e42021bfe 100644 (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);