From: Yao Qi Date: Sun, 5 Jan 2014 11:37:53 +0000 (+0800) Subject: Use void for empty argument list in trace_me X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eec03155c293e340850c25d1aa5fdd8e7a666776;p=binutils-gdb.git 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. --- 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");