diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-06-27 14:38:43 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-06-27 14:39:00 -0400 |
commit | 6db3031e5c8bbe94e2111633273d8e69e724220a (patch) | |
tree | cea4ea1a2dcc01f289045bada56003aee4c9d9a6 /gdb/cli | |
parent | 05779d57f9f4e7cbb6d4c79d8851d35a422bdd0d (diff) | |
download | gdb-6db3031e5c8bbe94e2111633273d8e69e724220a.zip gdb-6db3031e5c8bbe94e2111633273d8e69e724220a.tar.gz gdb-6db3031e5c8bbe94e2111633273d8e69e724220a.tar.bz2 |
gdbsupport: add format attribute to print_xml_feature::add_line
Fixes this clang error:
CXX tdesc.o
/home/smarchi/src/binutils-gdb/gdbsupport/tdesc.cc:444:25: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
string_vappendf (tmp, fmt, ap);
^~~
There is already a but about GCC not emitting this warning:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82206
gdbsupport/ChangeLog:
* tdesc.h (class print_xml_feature) <add_line>: Add
ATTRIBUTE_PRINTF.
Change-Id: I7014075e83717f6d7e19d044a3675ff9981ebe17
Diffstat (limited to 'gdb/cli')
0 files changed, 0 insertions, 0 deletions