This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
RE: [PATCH] Add missing prototype in gdbtk.c
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Keith Seitz'" <keiths at redhat dot com>, "'Roland Schwingel'" <roland at onevision dot com>
- Cc: <insight at sourceware dot org>
- Date: Fri, 30 Mar 2012 15:02:30 +0200
- Subject: RE: [PATCH] Add missing prototype in gdbtk.c
- References: <4F67221F.2020906@onevision.com> <4F74E9F1.20804@redhat.com>
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