This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Add one missing _initialize_foo declaration to shut up -Wmisssing-prototypes.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 7 Jun 2009 23:54:01 +0100
- Subject: Add one missing _initialize_foo declaration to shut up -Wmisssing-prototypes.
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)
{