diff options
author | Enze Li <enze.li@hotmail.com> | 2022-09-19 20:43:50 +0800 |
---|---|---|
committer | Enze Li <enze.li@hotmail.com> | 2022-09-19 20:47:32 +0800 |
commit | 77b7377bc4c8d404de00c5a360e64daee75acf80 (patch) | |
tree | a9812902e41fd6a8b04ef18ac824362655e134dd /gprofng/Makefile.in | |
parent | c99b2113a478a075e8d8f7c3848a92f1ce73f847 (diff) | |
download | gdb-77b7377bc4c8d404de00c5a360e64daee75acf80.zip gdb-77b7377bc4c8d404de00c5a360e64daee75acf80.tar.gz gdb-77b7377bc4c8d404de00c5a360e64daee75acf80.tar.bz2 |
gdb: add ATTRIBUTE_PRINTF to gdb_bfd_error_handler
I see this error when building with clang,
CXX gdb_bfd.o
gdb_bfd.c:1180:43: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
const std::string str = string_vprintf (fmt, ap_copy);
^~~
1 error generated.
This patch adds missing ATTRIBUTE_PRINTF to fix the error.
Tested on x86_64-linux with gcc 12 and clang 14.
Diffstat (limited to 'gprofng/Makefile.in')
0 files changed, 0 insertions, 0 deletions