diff options
author | Tom Tromey <tromey@redhat.com> | 2010-03-04 18:21:40 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-03-04 18:21:40 +0000 |
commit | 1b93ff13d3021712cf8629be000570ae5791414b (patch) | |
tree | 24afc7e81889b23e184a13dd4df62380645fd702 /gdb/printcmd.c | |
parent | f7dd8c79635c8e576cf5138a9ea5b068732cf044 (diff) | |
download | gdb-1b93ff13d3021712cf8629be000570ae5791414b.zip gdb-1b93ff13d3021712cf8629be000570ae5791414b.tar.gz gdb-1b93ff13d3021712cf8629be000570ae5791414b.tar.bz2 |
* printcmd.c (printf_command): Pass dummy argument to
printf_filtered.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 5e5ef8e..346c2e2 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); } |