aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd-in.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-02-19 23:36:55 +1030
committerAlan Modra <amodra@gmail.com>2018-02-19 23:55:55 +1030
commitf2b740ac53a3347b7e0fe1a09e52f6311265e709 (patch)
tree8f8cd6cbcd98022abe6c1a1d199963ce41d476cf /bfd/libbfd-in.h
parent8979927ae719d1a16d2acd01a11cc17ed3c78dfb (diff)
downloadgdb-f2b740ac53a3347b7e0fe1a09e52f6311265e709.zip
gdb-f2b740ac53a3347b7e0fe1a09e52f6311265e709.tar.gz
gdb-f2b740ac53a3347b7e0fe1a09e52f6311265e709.tar.bz2
Add attribute printf to _bfd_error_handler
and fix a few stray errors. * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler arguments. * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise. * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise. (_bfd_riscv_relax_pc): Likewise and fix typos. * libbfd-in.h (_bfd_error_handler): Add attribute printf. * libbfd.h: Regenerate.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r--bfd/libbfd-in.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index b4477fc..e1eea28 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -109,7 +109,7 @@ extern void *bfd_realloc2
extern void *bfd_zmalloc2
(bfd_size_type, bfd_size_type);
-extern void _bfd_error_handler (const char *s, ...);
+extern void _bfd_error_handler (const char *s, ...) ATTRIBUTE_PRINTF_1;
/* These routines allocate and free things on the BFD's objalloc. */