This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: ser-mingw.c will be failed to build on GCC4.4.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Masaki Muranaka <monaka at monami-software dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 24 Dec 2008 07:33:19 +0400
- Subject: Re: ser-mingw.c will be failed to build on GCC4.4.
- References: <49766CA5-7239-43DA-B018-5889387216FD@monami-software.com>
> Some functions in ser-mingw.c is declared with return value, with no
> return statement. For example, console_select_thread(),
> pipe_select_thread(), file_select_thread().
All these functions are used as the initial function when creating
threads. According to the MS documentation, the return value is
used to determine whether the function was successful or not.
In our case, I think that the thing to do is to add a "return 0"
at the end.
--
Joel