This is the mail archive of the insight@sourceware.org mailing list for the Insight 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]

[PATCH] Add missing prototypes


Hi,

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

Keith

ChangeLog
2012-03-10  Keith Seitz  <keiths@redhat.com>

	* generic/gdbtk-interp.c (_initialize_gdbtk_interp): Add
	missing prototype to appease -Wmissing-prototypes.
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 <kseitz@sources.redhat.com>
 
-   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
 {

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