From 7b17065f843252c27e8b9c093f78382079fe4d7f Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 12 Aug 2016 11:02:04 +0100 Subject: [PATCH] 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 * gdb.base/signals-state-child.c (main): Remove "i" from fprintf's argument list. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/signals-state-child.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index bfd1748fbff..d7437aad56f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-08-12 Yao Qi + + * gdb.base/signals-state-child.c (main): Remove "i" from fprintf's + argument list. + 2016-08-10 Pedro Alves PR gdb/19187 diff --git a/gdb/testsuite/gdb.base/signals-state-child.c b/gdb/testsuite/gdb.base/signals-state-child.c index e11fa931fd7..f934c86159f 100644 --- a/gdb/testsuite/gdb.base/signals-state-child.c +++ b/gdb/testsuite/gdb.base/signals-state-child.c @@ -74,7 +74,7 @@ main (int argc, char **argv) { int m; - fprintf (out, "sigaction={sa_handler=", i); + fprintf (out, "sigaction={sa_handler="); if (oldact.sa_handler == SIG_DFL) fprintf (out, "SIG_DFL"); -- 2.30.2