Use void for empty argument list in trace_me
authorYao Qi <yao@codesourcery.com>
Sun, 5 Jan 2014 11:37:53 +0000 (19:37 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 7 Jan 2014 03:01:42 +0000 (11:01 +0800)
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.

gdb/ChangeLog
gdb/gnu-nat.c

index 1568a9e102e7f40564f2fbe929c90227f7f4e541..236b117e0143ed7ec8fab957de445213eee49110 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 68e7459cc4be1831fef81122c81d12e855f366ca..b52e23b25c1206dc52ff89c2df26cfbc1ad3f2e5 100644 (file)
@@ -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");
This page took 0.02978 seconds and 4 git commands to generate.