From: Tom Tromey Date: Thu, 4 Mar 2010 18:25:03 +0000 (+0000) Subject: * printcmd.c (printf_command): Pass dummy argument to X-Git-Tag: gdb_7_1-2010-03-18-release~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6250ff1a8edc3b7b4b19a7a2280123167d95520;p=thirdparty%2Fbinutils-gdb.git * printcmd.c (printf_command): Pass dummy argument to printf_filtered. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ff56bcef8d9..c18065443e3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-04 Tom Tromey + + * printcmd.c (printf_command): Pass dummy argument to + printf_filtered. + 2010-03-03 Tom Tromey PR mi/11098: diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 5e5ef8e1be2..346c2e27008 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2645,8 +2645,10 @@ printf_command (char *arg, int from_tty) /* Print the portion of the format string after the last argument. Note that this will not include any ordinary %-specs, but it might include "%%". That is why we use printf_filtered and not - puts_filtered here. */ - printf_filtered (last_arg); + puts_filtered here. Also, we pass a dummy argument because + some platforms have modified GCC to include -Wformat-security + by default, which will warn here if there is no argument. */ + printf_filtered (last_arg, 0); } do_cleanups (old_cleanups); }