mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
Add ATTRIBUTE_PRINTF to printf_field_type_assignment
Get rid of: /home/simark/src/binutils-gdb/gdb/target-descriptions.c:2026:25: error: format string is not a string literal [-Werror,-Wformat-nonliteral] vprintf_unfiltered (fmt, args); when building with clang. gdb/ChangeLog: * target-descriptions.c (print_c_tdesc) <printf_field_type_assignment>: Add ATTRIBUTE_PRINTF.
This commit is contained in:
parent
5c8833d2fa
commit
6e8c24fe27
@ -1,3 +1,8 @@
|
||||
2017-12-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* target-descriptions.c (print_c_tdesc)
|
||||
<printf_field_type_assignment>: Add ATTRIBUTE_PRINTF.
|
||||
|
||||
2017-12-21 Simon Marchi <simon.marchi@ericsson.com>
|
||||
Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
|
||||
|
@ -2011,6 +2011,7 @@ class print_c_tdesc : public tdesc_element_visitor
|
||||
|
||||
/* Print an assignment to the field_type variable. Print the declaration
|
||||
of field_type if that has not been done yet. */
|
||||
ATTRIBUTE_PRINTF (2, 3)
|
||||
void printf_field_type_assignment (const char *fmt, ...)
|
||||
{
|
||||
if (!m_printed_field_type)
|
||||
|
Loading…
Reference in New Issue
Block a user