aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-04-15 09:33:21 -0600
committerTom Tromey <tromey@adacore.com>2024-04-15 09:37:12 -0600
commit5cb1d84e595aac021641622028d0e7f1e8ea8adf (patch)
tree070f4b677e6f0aa5eaf1608cada1f880978277a2 /bfd
parentccbf42ec88f3e8bbb74dbdc1d6c9da3a9d805cff (diff)
downloadgdb-5cb1d84e595aac021641622028d0e7f1e8ea8adf.zip
gdb-5cb1d84e595aac021641622028d0e7f1e8ea8adf.tar.gz
gdb-5cb1d84e595aac021641622028d0e7f1e8ea8adf.tar.bz2
Change printf attribute to fix clang build
commit e8cd90f0 ("Rewrite gdb_bfd_error_handler") broke the clang build. The problem here is that print_error_callback isn't marked as being printf-like, but it calls string_file::vprintf, triggering: ../../binutils-gdb/gdb/gdb_bfd.c:1202:18: error: format string is not a string literal [-Werror,-Wformat-nonliteral] This patch applies the attribute to this function. It also removes the attribute from gdb_bfd_error_handler, because that function is no longer really printf-like.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions