This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit 1/2] Add missing _initialize_ravenscar prototype.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Thu, 8 Mar 2012 16:33:09 -0800
- Subject: [commit 1/2] Add missing _initialize_ravenscar prototype.
- References: <1331253190-20721-1-git-send-email-brobecker@adacore.com>
gdb/ChangeLog:
* ravenscar-thread.c (_initialize_ravenscar): Add prototype.
Tested on x86_64-linux cross sparc-elf. Checked in.
---
gdb/ChangeLog | 4 ++++
gdb/ravenscar-thread.c | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b77aaed..aa717ca 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-08 Joel Brobecker <brobecker@adacore.com>
+
+ * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
+
2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix -Wmissing-prototypes build.
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index 63ecad5..9b9e7fe 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -421,6 +421,9 @@ Support for Ravenscar task/thread switching is enabled\n"));
Support for Ravenscar task/thread switching is disabled\n"));
}
+/* Provide a prototype to silence -Wmissing-prototypes. */
+extern void _initialize_ravenscar (void);
+
/* Module startup initialization function, automagically called by
init.c. */
--
1.7.1