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]

New compilation errors building Cygwin DLL


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


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