This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]