[PATCH] Add missing prototypes

Keith Seitz <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
Hi,

Gdb recently added -Wmissing-prototypes. This patch fixes the one build 
regression caused by this.

Keith

ChangeLog
2012-03-10  Keith Seitz  <[email protected]>

	* generic/gdbtk-interp.c (_initialize_gdbtk_interp): Add
	missing prototype to appease -Wmissing-prototypes.
missing-proto.patch (text/x-patch, 826 B)
Index: generic/gdbtk-interp.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-interp.c,v
retrieving revision 1.11
diff -u -p -r1.11 gdbtk-interp.c
--- generic/gdbtk-interp.c	2 Nov 2011 19:44:37 -0000	1.11
+++ generic/gdbtk-interp.c	10 Mar 2012 21:51:32 -0000
@@ -1,7 +1,7 @@
 /* Insight Definitions for GDB, the GNU debugger.
    Written by Keith Seitz <[email protected]>
 
-   Copyright (C) 2003, 2004, 2008, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004, 2008, 2011, 2012 Free Software Foundation, Inc.
 
    This file is part of Insight.
 
@@ -42,6 +42,7 @@
 
 static void gdbtk_command_loop (void);
 static void hack_disable_interpreter_exec (char *, int);
+void _initialize_gdbtk_interp (void);
 
 struct gdbtk_interp_data
 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.