Add ATTRIBUTE_PRINTF to printf_field_type_assignment
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 23 Dec 2017 21:25:06 +0000 (16:25 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 23 Dec 2017 21:25:06 +0000 (16:25 -0500)
commit6e8c24fe27098f407000812e61fa8210095a7970
tree1c5cc7d86cca8997a780d1a848fbbbc88a23ffdf
parent5c8833d2fa4bcb6a0ef4249dd095bcf29a240465
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.
gdb/ChangeLog
gdb/target-descriptions.c