This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH] Shut up compiler warnings in ser-go32.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH] Shut up compiler warnings in ser-go32.c
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Sun, 19 Mar 2000 07:10:24 -0500 (EST)
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
I committed today the following patch:
2000-03-17 Eli Zaretskii <eliz@is.elta.co.il>
* ser-go32.c (ports): Make the initializers complete, to pacify
GCC 2.9X.
--- gdb/ser-go32.c~2 Tue Mar 14 22:12:12 2000
+++ gdb/ser-go32.c Sat Mar 18 15:23:12 2000
@@ -214,19 +214,19 @@ static struct dos_ttystate
ports[4] =
{
{
- COM1ADDR, 4
+ COM1ADDR, 4, 0, NULL, 0, 0, "", 0, 0, 0, 0, 0, 0, 0, 0
}
,
{
- COM2ADDR, 3
+ COM2ADDR, 3, 0, NULL, 0, 0, "", 0, 0, 0, 0, 0, 0, 0, 0
}
,
{
- COM3ADDR, 4
+ COM3ADDR, 4, 0, NULL, 0, 0, "", 0, 0, 0, 0, 0, 0, 0, 0
}
,
{
- COM4ADDR, 3
+ COM4ADDR, 3, 0, NULL, 0, 0, "", 0, 0, 0, 0, 0, 0, 0, 0
}
};
@@ -879,6 +879,7 @@ static struct serial_ops dos_ops =
dos_setbaudrate,
dos_setstopbits,
dos_noop, /* wait for output to drain */
+ (void (*)(serial_t, int))NULL /* change into async mode */
};