summaryrefslogtreecommitdiff
path: root/libiberty/pex-unix.c
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-12 02:21:26 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-12 02:21:26 +0000
commitab248be06f1a72a787a69d42bcd4dcdcca6b08a1 (patch)
tree94b04f62df6af0a039432b2705ffedacbe1150d6 /libiberty/pex-unix.c
parent217720f05352946a60847bc540a99efcba4ef51d (diff)
downloadgcc-ab248be06f1a72a787a69d42bcd4dcdcca6b08a1.tar.gz
* pex-unix.c (writeerr): Cast write result to void.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120702 138bc75d-0d04-0410-961f-82ee72b054a4
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 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);