RE: [PATCH] Add missing prototype in gdbtk.c

"Pierre Muller" <[email protected]> Fri, 30 Mar 2012 15:02:30 +0200
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
In fact, the same error also appears when 
trying to compile a mingw32 version.

I hope that I found the reason:
Prototypes apparently require (void) instead of ().

The following patch fixes the problem for mingw32,

Is this patch OK?


Pierre Muller
GDB pascal language maintainer



2012-03-30  Pierre Muller  <[email protected]>

        * generic/gdbtk.h (close_bfds): Fox prototype.

Index: generic/gdbtk.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.h,v
retrieving revision 1.13
diff -u -p -r1.13 gdbtk.h
--- generic/gdbtk.h     2 Sep 2008 17:29:23 -0000       1.13
+++ generic/gdbtk.h     30 Mar 2012 12:53:48 -0000
@@ -165,7 +165,7 @@ extern int gdbtk_disable_fputs;
 extern ptid_t gdbtk_get_ptid (void);

 #ifdef _WIN32
-extern void close_bfds ();
+extern void close_bfds (void);
 #endif /* _WIN32 */

 extern void