This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New compilation errors building Cygwin DLL


On Feb 24 16:28, Mark Geisert wrote:
> 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)).

This is nothing to worry about.  It's WIP and the functions have just
been copied from fhandler_socket_local to fhandler_socket_unix and then
stripped down to just keep the stuff required to keep in mind for the
new implemantation.  Just ignore any errors from fhandler_socket_unix
for the time being.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]