remote-sim: Add missing ATTRIBUTE_PRINTF
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 20 Feb 2018 16:41:54 +0000 (11:41 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 20 Feb 2018 16:41:54 +0000 (11:41 -0500)
commit7104e59bece90e387d70f617eb7ed4c34087283d
tree6b1cae121caf3533a8b6ff98fb455971510b355c
parentb0ab9c4549148435114b95edf38cbf4b6d9fec21
remote-sim: Add missing ATTRIBUTE_PRINTF

Fixes:

/home/emaisin/src/binutils-gdb/gdb/remote-sim.c:385:34: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
  vfprintf_filtered (gdb_stdout, format, args);
                                 ^~~~~~
/home/emaisin/src/binutils-gdb/gdb/remote-sim.c:394:34: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
  vfprintf_filtered (gdb_stdout, format, ap);
                                 ^~~~~~
/home/emaisin/src/binutils-gdb/gdb/remote-sim.c:402:34: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
  vfprintf_filtered (gdb_stderr, format, ap);
                                 ^~~~~~
/home/emaisin/src/binutils-gdb/gdb/remote-sim.c:413:11: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
  verror (format, args);
          ^~~~~~
4 errors generated.

gdb/ChangeLog:

* remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
gdb/ChangeLog
gdb/remote-sim.c