[PATCH] Add missing prototype in gdbtk.c

Roland Schwingel <[email protected]> Mon, 19 Mar 2012 13:10:07 +0100
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
Hi...

In gdbtk.c there is a protoype missing for the windows only function 
close_bfds(). This is required due to recently enabled 
-Wmissing-prototype compilation.

Changelog:

2012-03-19  Roland Schwingel <[email protected]>

         * generic/gdbtk.c: Add prototype for close_bfds().

Any comments? Is this ok?

Roland
missing_prototype_gdbtk.c.patch (text/plain, 518 B)
Index: //subnet-homes/Entwicklung/User/roland/local/gdb/head/source/gdb/gdbtk/generic/gdbtk.c
===================================================================
--- //subnet-homes/Entwicklung/User/roland/local/gdb/head/source/gdb/gdbtk/generic/gdbtk.c	(revision 115571)
+++ //subnet-homes/Entwicklung/User/roland/local/gdb/head/source/gdb/gdbtk/generic/gdbtk.c	(working copy)
@@ -165,6 +165,8 @@
  * this will cost us if and when we need to reopen it.
  */
 
+extern void close_bfds (void);
+
 void
 close_bfds ()
 {