mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 20:39:33 +08:00
Fix compiler errors/warnings when compiling with -O3
* fhandler_socket.cc (fhandler_socket::wait_for_events): Fix compiler warning in -O3 case. (fhandler_socket::connect): Ditto. * regex/regcomp.c (singleton): Ditto. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
c3b6da1781
commit
67364cbfd9
@ -1,3 +1,10 @@
|
||||
2015-09-23 Evgeny Grin <k2k@yandex.ru>
|
||||
|
||||
* fhandler_socket.cc (fhandler_socket::wait_for_events): Fix compiler
|
||||
warning in -O3 case.
|
||||
(fhandler_socket::connect): Ditto.
|
||||
* regex/regcomp.c (singleton): Ditto.
|
||||
|
||||
2015-09-08 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* flock.cc (lockf_t::create_lock_obj_attr): Add buffer parameter.
|
||||
|
@ -746,7 +746,7 @@ fhandler_socket::wait_for_events (const long event_mask, const DWORD flags)
|
||||
return 0;
|
||||
|
||||
int ret;
|
||||
long events;
|
||||
long events = 0;
|
||||
|
||||
while (!(ret = evaluate_events (event_mask, events, !(flags & MSG_PEEK)))
|
||||
&& !events)
|
||||
@ -1160,7 +1160,7 @@ int
|
||||
fhandler_socket::connect (const struct sockaddr *name, int namelen)
|
||||
{
|
||||
struct sockaddr_storage sst;
|
||||
int type;
|
||||
int type = 0;
|
||||
|
||||
if (get_inet_addr (name, namelen, &sst, &namelen, &type, connect_secret)
|
||||
== SOCKET_ERROR)
|
||||
|
@ -1246,7 +1246,7 @@ freeset(struct parse *p, cset *cs)
|
||||
static wint_t
|
||||
singleton(cset *cs)
|
||||
{
|
||||
wint_t i, s, n;
|
||||
wint_t i, s = OUT, n;
|
||||
|
||||
for (i = n = 0; i < NC; i++)
|
||||
if (CHIN(cs, i)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user