aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
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 /gdb/gnu-nat.c
parentf04a82ef62e9f32502772f64d2eac478b96ef566 (diff)
downloadfsf-binutils-gdb-eec03155c293e340850c25d1aa5fdd8e7a666776.zip
fsf-binutils-gdb-eec03155c293e340850c25d1aa5fdd8e7a666776.tar.gz
fsf-binutils-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.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r--gdb/gnu-nat.c2
1 files changed, 1 insertions, 1 deletions
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");