linux-waitpid: Get rid of format string warning
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 21 Sep 2017 13:19:40 +0000 (15:19 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 21 Sep 2017 13:19:40 +0000 (15:19 +0200)
commit1e5b66ed4285ecf063e7801a46178ebb0ce5be41
tree2e6faf4d37906907faec06f3fd41fbc3bb73ee39
parentebe48ba0856dcccaa7a60d873c61e6f1f96f5887
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.
gdb/ChangeLog
gdb/nat/linux-waitpid.c