diff --git a/bfd/ChangeLog b/bfd/ChangeLog index da19766a43..e680c3ac41 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-05-09 Joel Brobecker + + * bfd.c (_bfd_default_error_handler): Replace use of putc + by fputc. Add comment explaining why. + 2013-05-09 Alan Modra * elflink.c (elf_link_add_object_symbols): Don't omit reading diff --git a/bfd/bfd.c b/bfd/bfd.c index 10bc319bda..8d0580c20f 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -733,7 +733,9 @@ _bfd_default_error_handler (const char *fmt, ...) vfprintf (stderr, new_fmt, ap); va_end (ap); - putc ('\n', stderr); + /* On AIX, putc is implemented as a macro that triggers a -Wunused-value + warning, so use the fputc function to avoid it. */ + fputc ('\n', stderr); fflush (stderr); }