This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH, libiberty: eliminate build warning
Ben Elliston <bje@au1.ibm.com> writes:
> -#define writeerr(s) (void) write (STDERR_FILE_NO, s, strlen (s))
> + int retval = 0;
> +#define writeerr(s) retval |= write (STDERR_FILE_NO, s, strlen (s))
It seems to me that it should be
#define writeerr(s) retval |= write (STDERR_FILE_NO, s, strlen (s)) < 0
This is OK with that change if it makes sense to you.
Ian