« Return to Thread: [PATCH] Add missing prototype in gdbtk.c

[PATCH] Add missing prototype in gdbtk.c

by Roland Schwingel-4 :: Rate this Message:

| View in Thread

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 <roland.schwingel@...>

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

Any comments? Is this ok?

Roland

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 ()
 {

 « Return to Thread: [PATCH] Add missing prototype in gdbtk.c