This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: silence warning in libiberty/pex-unix.c
- From: Ian Lance Taylor <iant at google dot com>
- To: Ben Elliston <bje at au1 dot ibm dot com>
- Cc: binutils at sourceware dot org, gcc-patches at gcc dot gnu dot org
- Date: 11 Jan 2007 17:11:55 -0800
- Subject: Re: PATCH: silence warning in libiberty/pex-unix.c
- References: <1168562737.6608.12.camel@localhost>
Ben Elliston <bje@au1.ibm.com> writes:
> -#define writeerr(s) write (STDERR_FILE_NO, s, strlen (s))
> +#define writeerr(s) if (write (STDERR_FILE_NO, s, 0) < 0) _exit (-1)
Just cast the result to (void). I'll preapprove that patch if that
works.
Ian