Add one missing _initialize_foo declaration to shut up -Wmisssing-prototypes.

Pedro Alves pedro@codesourcery.com
Sun Jun 7 22:53:00 GMT 2009


Checked in.

2009-06-07  Pedro Alves  <pedro@codesourcery.com>

	* hppa-tdep.c (_initialize_hppa_tdep): Add declaration.

---
 gdb/hppa-tdep.c |    3 +++
 1 file changed, 3 insertions(+)

Index: src/gdb/hppa-tdep.c
===================================================================
--- src.orig/gdb/hppa-tdep.c	2009-02-22 14:20:33.000000000 +0000
+++ src/gdb/hppa-tdep.c	2009-02-22 14:20:46.000000000 +0000
@@ -3145,6 +3145,9 @@ hppa_dump_tdep (struct gdbarch *gdbarch,
   fprintf_unfiltered (file, "elf = %s\n", tdep->is_elf ? "yes" : "no");
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_hppa_tdep;
+
 void
 _initialize_hppa_tdep (void)
 {



More information about the Gdb-patches mailing list