mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
linux-waitpid: Get rid of format string warning
Clang gives this warning: /home/emaisin/src/binutils-gdb/gdb/gdbserver/../nat/linux-waitpid.c:45:25: error: format string is not a string literal [-Werror,-Wformat-nonliteral] vfprintf (stderr, format, args); ^~~~~~ Get rid of it by adding ATTRIBUTE_PRINTF. gdb/ChangeLog: * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
|
||||
|
||||
2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
|
||||
|
@ -34,7 +34,7 @@
|
||||
/* Print debugging output based on the format string FORMAT and
|
||||
its parameters. */
|
||||
|
||||
static inline void
|
||||
static inline void ATTRIBUTE_PRINTF (1,2)
|
||||
linux_debug (const char *format, ...)
|
||||
{
|
||||
#ifdef GDBSERVER
|
||||
|
Reference in New Issue
Block a user