aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-01-05 19:37:53 +0800
committerYao Qi <yao@codesourcery.com>2014-01-07 11:01:42 +0800
commiteec03155c293e340850c25d1aa5fdd8e7a666776 (patch)
treefedd9f5110333f48c6f93fe22a840afdb14ccc5a
parentf04a82ef62e9f32502772f64d2eac478b96ef566 (diff)
downloadgdb-eec03155c293e340850c25d1aa5fdd8e7a666776.zip
gdb-eec03155c293e340850c25d1aa5fdd8e7a666776.tar.gz
gdb-eec03155c293e340850c25d1aa5fdd8e7a666776.tar.bz2
Use void for empty argument list in trace_me
This patch fixes the following error: ../../../git/gdb/gnu-nat.c: In function 'trace_me': ../../../git/gdb/gnu-nat.c:2106:8: error: old-style function definition [-Werror=old-style-definition] gdb: 2014-01-07 Yao Qi <yao@codesourcery.com> * gnu-nat.c (trace_me): Use 'void' for empty argument list.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gnu-nat.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1568a9e..236b117 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2014-01-07 Yao Qi <yao@codesourcery.com>
+ * gnu-nat.c (trace_me): Use 'void' for empty argument list.
+
+2014-01-07 Yao Qi <yao@codesourcery.com>
+
* gnu-nat.c (make_inf) Update declaration.
(make_inf): Make it static.
(inf_set_traced): Likewise.
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 68e7459..b52e23b 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -2103,7 +2103,7 @@ gnu_create_inferior (struct target_ops *ops,
struct inf *inf = cur_inf ();
int pid;
- void trace_me ()
+ void trace_me (void)
{
/* We're in the child; make this process stop as soon as it execs. */
inf_debug (inf, "tracing self");