This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Microblaze simulator - Fix missing prototype


Without this patch, this generates a missing prototype
warning which is treated as an error. I don't see this
routine referenced elsewhere, so there is the possibility
that it also could be made static.

OK to apply?

2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>

* microblaze-rom.c (_initialize_picobug_rom): Add prototype.

--
Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985


Index: gdb/microblaze-rom.c
===================================================================
RCS file: /cvs/src/src/gdb/microblaze-rom.c,v
retrieving revision 1.5
diff -u -r1.5 microblaze-rom.c
--- gdb/microblaze-rom.c	4 Jan 2012 08:17:06 -0000	1.5
+++ gdb/microblaze-rom.c	7 May 2012 20:15:54 -0000
@@ -25,6 +25,8 @@
 #include "serial.h"
 #include "regcache.h"
 
+void _initialize_picobug_rom(void);
+
 static char *picobug_inits[] =
 {"\r", NULL};
 
@@ -174,7 +176,7 @@
 }
 
 void
-_initialize_picobug_rom ()
+_initialize_picobug_rom (void)
 {
   int i;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]