This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: fix a couple prototypes
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 16 Mar 2011 09:17:48 -0600
- Subject: FYI: fix a couple prototypes
I'm checking this in.
This fixes a couple problems pointed out by -Wstrict-prototypes.
Tested by rebuilding on x86 F13.
Tom
2011-03-16 Tom Tromey <tromey@redhat.com>
* tracepoint.c (stop_tracing): Don't declare.
* event-top.c (after_char_processing_hook): Add `(void)'.
Index: event-top.c
===================================================================
RCS file: /cvs/src/src/gdb/event-top.c,v
retrieving revision 1.76
diff -u -r1.76 event-top.c
--- event-top.c 1 Mar 2011 21:12:27 -0000 1.76
+++ event-top.c 16 Mar 2011 15:16:08 -0000
@@ -165,7 +165,7 @@
/* This hook is called by rl_callback_read_char_wrapper after each
character is processed. */
-void (*after_char_processing_hook) ();
+void (*after_char_processing_hook) (void);
/* Wrapper function for calling into the readline library. The event
Index: tracepoint.c
===================================================================
RCS file: /cvs/src/src/gdb/tracepoint.c,v
retrieving revision 1.217
diff -u -r1.217 tracepoint.c
--- tracepoint.c 14 Mar 2011 15:43:50 -0000 1.217
+++ tracepoint.c 16 Mar 2011 15:16:09 -0000
@@ -70,8 +70,6 @@
extern int hex2bin (const char *hex, gdb_byte *bin, int count);
extern int bin2hex (const gdb_byte *bin, char *hex, int count);
-extern void stop_tracing ();
-
/* Maximum length of an agent aexpression.
This accounts for the fact that packets are limited to 400 bytes
(which includes everything -- including the checksum), and assumes