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]

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


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  <muller@ics.u-strasbg.fr>

        * 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



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