From eec03155c293e340850c25d1aa5fdd8e7a666776 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Sun, 5 Jan 2014 19:37:53 +0800 Subject: [PATCH] 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 * gnu-nat.c (trace_me): Use 'void' for empty argument list. --- gdb/ChangeLog | 4 ++++ gdb/gnu-nat.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1568a9e102e..236b117e014 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-01-07 Yao Qi + + * gnu-nat.c (trace_me): Use 'void' for empty argument list. + 2014-01-07 Yao Qi * gnu-nat.c (make_inf) Update declaration. diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 68e7459cc4b..b52e23b25c1 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"); -- 2.30.2