mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Fix warning in gdb.base/signals-state-child.c
I see the following warning when running signals-state-child.exp. gdb/testsuite/gdb.base/signals-state-child.c:77:4: warning: too many arguments for format [-Wformat-extra-args] fprintf (out, "sigaction={sa_handler=", i); ^ this patch is to remove the argument from fprintf. gdb/testsuite: 2016-08-12 Yao Qi <yao.qi@linaro.org> * gdb.base/signals-state-child.c (main): Remove "i" from fprintf's argument list.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2016-08-12 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
|
* gdb.base/signals-state-child.c (main): Remove "i" from fprintf's
|
||||||
|
argument list.
|
||||||
|
|
||||||
2016-08-10 Pedro Alves <palves@redhat.com>
|
2016-08-10 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
PR gdb/19187
|
PR gdb/19187
|
||||||
|
@ -74,7 +74,7 @@ main (int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int m;
|
int m;
|
||||||
|
|
||||||
fprintf (out, "sigaction={sa_handler=", i);
|
fprintf (out, "sigaction={sa_handler=");
|
||||||
|
|
||||||
if (oldact.sa_handler == SIG_DFL)
|
if (oldact.sa_handler == SIG_DFL)
|
||||||
fprintf (out, "SIG_DFL");
|
fprintf (out, "SIG_DFL");
|
||||||
|
Reference in New Issue
Block a user