* printcmd.c (printf_command): Pass dummy argument to
printf_filtered.
This commit is contained in:
parent
f7dd8c7963
commit
1b93ff13d3
|
@ -1,3 +1,8 @@
|
||||||
|
2010-03-04 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* printcmd.c (printf_command): Pass dummy argument to
|
||||||
|
printf_filtered.
|
||||||
|
|
||||||
2010-03-04 Doug Evans <dje@google.com>
|
2010-03-04 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
|
* arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
|
||||||
|
|
|
@ -2645,8 +2645,10 @@ printf_command (char *arg, int from_tty)
|
||||||
/* Print the portion of the format string after the last argument.
|
/* Print the portion of the format string after the last argument.
|
||||||
Note that this will not include any ordinary %-specs, but it
|
Note that this will not include any ordinary %-specs, but it
|
||||||
might include "%%". That is why we use printf_filtered and not
|
might include "%%". That is why we use printf_filtered and not
|
||||||
puts_filtered here. */
|
puts_filtered here. Also, we pass a dummy argument because
|
||||||
printf_filtered (last_arg);
|
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);
|
do_cleanups (old_cleanups);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue