diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1b4b13aba96..c81c611e9a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-12-23 Simon Marchi + + * target-descriptions.c (print_c_tdesc) + : Add ATTRIBUTE_PRINTF. + 2017-12-21 Simon Marchi Sergio Durigan Junior diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 5dcc4c4c5c0..b37f4f0c193 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -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)