PATCH: silence warning in libiberty/pex-unix.c

Ian Lance Taylor iant@google.com
Fri Jan 12 01:12:00 GMT 2007


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



More information about the Gcc-patches mailing list