This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
New compilation errors building Cygwin DLL
- From: Mark Geisert <mark at maxrnd dot com>
- To: cygwin-developers at cygwin dot com
- Date: Sat, 24 Feb 2018 16:28:21 -0800 (PST)
- Subject: New compilation errors building Cygwin DLL
- Authentication-results: sourceware.org; auth=none
I'm getting the following two errors building after a recent 'git pull'...
/oss/src/winsup/cygwin/fhandler_socket_unix.cc: In member function
'virtual int fhandler_socket_unix::ioctl(unsigned int, void*)':
/oss/src/winsup/cygwin/fhandler_socket_unix.cc:589:10: error: 'ret' may be
used uninitialized in this function [-Werror=maybe-uninitialized]
return ret;
^~~
/oss/src/winsup/cygwin/fhandler_socket_unix.cc: In member function
'virtual int fhandler_socket_unix::fcntl(int, intptr_t)':
/oss/src/winsup/cygwin/fhandler_socket_unix.cc:607:10: error: 'ret' may be
used uninitialized in this function [-Werror=maybe-uninitialized]
return ret;
^~~
I'd submit a patch but I'm unsure whether ret needs initialization to 0 or
to -1 (with appropriate set_errno(EBLAH)).
Thanks,
..mark