Clang static analyzer results

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Wed Jul 4 03:46:00 GMT 2012


On Mon, 2012-07-02 at 16:04 -0400, Christopher Faylor wrote:
> Btw, Clang doesn't actually build a usable version of Cygwin does it?

I'm sorry to report that Clang doesn't build winsup/cygwin at all, at
least not with -Werror.  Error log for winsup/cygwin attached.


Yaakov

-------------- next part --------------
winsup/cygwin/cygtls.h:186:3: error: struct 'pthread' was previously declared as a class [-Werror,-Wmismatched-tags]
  struct pthread *tid;
  ^
winsup/cygwin/include/cygwin/types.h:205:15: note: previous use is here
typedef class pthread *pthread_t;
              ^
winsup/cygwin/cygtls.h:208:10: error: struct '_cygtls' was previously declared as a class [-Werror,-Wmismatched-tags]
  static struct _cygtls *find_tls (int sig);
         ^
winsup/cygwin/cygtls.h:169:7: note: previous use is here
class _cygtls
      ^
winsup/cygwin/thread.h:77:1: error: class 'per_process' was previously declared as a struct [-Werror,-Wmismatched-tags]
class per_process;
^
winsup/cygwin/include/sys/cygwin.h:249:8: note: previous use is here
struct per_process
       ^
winsup/cygwin/thread.h:77:1: note: did you mean struct here?
class per_process;
^~~~~
struct
winsup/cygwin/thread.h:679:1: error: 'MTinterface' defined as a struct here but previously declared as a class [-Werror,-Wmismatched-tags]
struct MTinterface
^
winsup/cygwin/include/sys/cygwin.h:244:1: note: did you mean struct here?
class MTinterface;
^~~~~
struct
winsup/cygwin/lib/_cygwin_crt0_common.cc:41:19: error: unknown attribute 'dllimport' ignored [-Werror,-Wattributes]
extern __declspec(dllimport) struct _reent *_impure_ptr;
                  ^
winsup/w32api/include/windef.h:89:38: note: expanded from:
#define __declspec(e) __attribute__((e))
                                     ^
winsup/cygwin/tty.h:91:5: error: declaration does not declare anything [-Werror,-Wmissing-declarations]
    __attribute__ ((regparm (3)));
    ^~~~~~~~~~~~~

winsup/cygwin/fhandler.h:1171:7: error: 'fhandler_termios::ioctl' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
  int ioctl (int, void *);
      ^
winsup/cygwin/fhandler.h:354:15: note: hidden overloaded virtual function 'fhandler_base::ioctl' declared here
  virtual int ioctl (unsigned int cmd, void *);
              ^
winsup/cygwin/fhandler.h:1865:17: error: 'fhandler_virtual::fstat' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
  int __stdcall fstat (struct stat *buf) __attribute__ ((regparm (2)));
                ^
winsup/cygwin/fhandler.h:331:25: note: hidden overloaded virtual function 'fhandler_base::fstat' declared here
  virtual int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));
                        ^
winsup/cygwin/dtable.h:22:1: error: class 'suffix_info' was previously declared as a struct [-Werror,-Wmismatched-tags]
class suffix_info;
^
winsup/cygwin/path.h:36:8: note: previous use is here
struct suffix_info
       ^
winsup/cygwin/dtable.h:22:1: note: did you mean struct here?
class suffix_info;
^~~~~
struct

winsup/cygwin/cygheap.h:390:3: error: struct '_cygtls' was previously declared as a class [-Werror,-Wmismatched-tags]
  struct _cygtls **threadlist;
  ^
winsup/cygwin/cygtls.h:169:7: note: previous use is here
class _cygtls
      ^
winsup/cygwin/cygheap.h:390:3: note: did you mean class here?
  struct _cygtls **threadlist;
  ^~~~~~
  class
winsup/cygwin/cygheap.h:394:5: error: struct 'inode_t' was previously declared as a class [-Werror,-Wmismatched-tags]
    struct inode_t *lh_first;
    ^
winsup/cygwin/fhandler.h:54:7: note: previous use is here
class inode_t;
      ^

winsup/cygwin/devices.cc:144:12: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev", BRACK(FH_DEV), "/dev", exists, S_IFDIR, false},
           ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:145:22: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/clipboard", BRACK(FH_CLIPBOARD), "/dev/clipboard", exists, S_IFCHR, true},
                     ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:146:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com1", BRACK(FHDEV(DEV_SERIAL_MAJOR, 0)), "\\??\\COM1", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:147:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com2", BRACK(FHDEV(DEV_SERIAL_MAJOR, 1)), "\\??\\COM2", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:148:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com3", BRACK(FHDEV(DEV_SERIAL_MAJOR, 2)), "\\??\\COM3", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:149:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com4", BRACK(FHDEV(DEV_SERIAL_MAJOR, 3)), "\\??\\COM4", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:150:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com5", BRACK(FHDEV(DEV_SERIAL_MAJOR, 4)), "\\??\\COM5", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:151:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com6", BRACK(FHDEV(DEV_SERIAL_MAJOR, 5)), "\\??\\COM6", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:152:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com7", BRACK(FHDEV(DEV_SERIAL_MAJOR, 6)), "\\??\\COM7", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:153:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com8", BRACK(FHDEV(DEV_SERIAL_MAJOR, 7)), "\\??\\COM8", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:154:17: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com9", BRACK(FHDEV(DEV_SERIAL_MAJOR, 8)), "\\??\\COM9", exists_ntdev_silent, S_IFCHR, true},
                ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
winsup/cygwin/devices.cc:155:18: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"/dev/com10", BRACK(FHDEV(DEV_SERIAL_MAJOR, 9)), "\\??\\COM10", exists_ntdev_silent, S_IFCHR, true},
                 ^
winsup/cygwin/devices.cc:141:19: note: expanded from:
#define BRACK(x) {devn_int: x}
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

winsup/cygwin/environ.cc:117:20: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"error_start", {func: error_start_init}, isfunc, NULL, {{0}, {0}}},
                   ^~~~~
                   .func = 
winsup/cygwin/environ.cc:119:13: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"glob", {func: glob_init}, isfunc, NULL, {{0}, {s: "normal"}}},
            ^~~~~
            .func = 
winsup/cygwin/environ.cc:119:52: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"glob", {func: glob_init}, isfunc, NULL, {{0}, {s: "normal"}}},
                                                   ^~
                                                   .s = 
winsup/cygwin/environ.cc:121:19: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"proc_retry", {func: set_proc_retry}, isfunc, NULL, {{0}, {5}}},
                  ^~~~~
                  .func = 
winsup/cygwin/environ.cc:123:12: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {"tty", {func: tty_is_gone}, isfunc, NULL, {{0}, {0}}},
           ^~~~~
           .func = 

winsup/cygwin/exceptions.cc:484:20: error: incrementing expression of type bool is deprecated [-Werror,-Wdeprecated]
  if (debugging && ++debugging < 500000)
                   ^ ~~~~~~~~~

winsup/cygwin/fhandler.cc:291:8: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
                          { QuadPart:FILE_USE_FILE_POINTER_POSITION };
                            ^~~~~~~~~
                            .QuadPart = 
winsup/cygwin/fhandler.cc:293:8: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
                          { QuadPart:FILE_WRITE_TO_END_OF_FILE };
                            ^~~~~~~~~
                            .QuadPart = 
winsup/cygwin/fhandler.cc:688:46: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
      FILE_END_OF_FILE_INFORMATION feofi = { EndOfFile:{ QuadPart:0 } };
                                             ^~~~~~~~~~
                                             .EndOfFile = 
winsup/cygwin/fhandler.cc:688:58: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
      FILE_END_OF_FILE_INFORMATION feofi = { EndOfFile:{ QuadPart:0 } };
                                                         ^~~~~~~~~
                                                         .QuadPart = 

winsup/cygwin/fhandler_disk_file.cc:658:27: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
                  LARGE_INTEGER off = { QuadPart:0LL };
                                        ^~~~~~~~~
                                        .QuadPart = 
winsup/cygwin/fhandler_disk_file.cc:1564:29: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
      LARGE_INTEGER off = { QuadPart:offset };
                            ^~~~~~~~~
                            .QuadPart = 
winsup/cygwin/fhandler_disk_file.cc:1633:29: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
      LARGE_INTEGER off = { QuadPart:offset };
                            ^~~~~~~~~
                            .QuadPart = 

winsup/cygwin/fhandler_floppy.cc:421:25: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  LARGE_INTEGER off = { QuadPart: 0LL };
                        ^~~~~~~~~
                        .QuadPart = 

winsup/cygwin/fhandler_procsys.cc:399:25: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  LARGE_INTEGER off = { QuadPart:0LL };
                        ^~~~~~~~~
                        .QuadPart = 

winsup/cygwin/fhandler_socket.cc:468:87: error: shared attribute ignored [-Werror]
static wsa_event wsa_events[NUM_SOCKS] __attribute__((section (".cygwin_dll_common"), shared));
                                                                                      ^
winsup/cygwin/fhandler_socket.cc:470:81: error: shared attribute ignored [-Werror]
static LONG socket_serial_number __attribute__((section (".cygwin_dll_common"), shared));
                                                                                ^
winsup/cygwin/fhandler_socket.cc:1134:8: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
              sin6_family: AF_INET6,
              ^~~~~~~~~~~~
              .sin6_family = 
winsup/cygwin/fhandler_socket.cc:1135:8: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
              sin6_port: 0,
              ^~~~~~~~~~
              .sin6_port = 
winsup/cygwin/fhandler_socket.cc:1136:8: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
              sin6_flowinfo: 0,
              ^~~~~~~~~~~~~~
              .sin6_flowinfo = 
winsup/cygwin/fhandler_socket.cc:1137:8: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
              sin6_addr: {{IN6ADDR_ANY_INIT}},
              ^~~~~~~~~~
              .sin6_addr = 
winsup/cygwin/fhandler_socket.cc:1138:8: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
              sin6_scope_id: 0
              ^~~~~~~~~~~~~~
              .sin6_scope_id = 

winsup/cygwin/flock.cc:307:5: error: struct 'inode_t' was previously declared as a class [-Werror,-Wmismatched-tags]
    LIST_ENTRY (inode_t) i_next;
    ^
winsup/cygwin/include/sys/queue.h:325:2: note: expanded from:
        struct type *le_next;   /* next element */                      \
        ^
winsup/cygwin/flock.cc:302:7: note: previous use is here
class inode_t
      ^
winsup/cygwin/flock.cc:307:5: error: struct 'inode_t' was previously declared as a class [-Werror,-Wmismatched-tags]
    LIST_ENTRY (inode_t) i_next;
    ^
winsup/cygwin/include/sys/queue.h:326:2: note: expanded from:
        struct type **le_prev;  /* address of previous next element */  \
        ^
winsup/cygwin/flock.cc:302:7: note: previous use is here
class inode_t
      ^
winsup/cygwin/flock.cc:1441:13: error: struct 'lockf_t' was previously declared as a class [-Werror,-Wmismatched-tags]
  if (lf == NOLOCKF)
            ^
winsup/cygwin/flock.cc:907:18: note: expanded from:
#define NOLOCKF (struct lockf_t *)0
                 ^
winsup/cygwin/flock.cc:246:7: note: previous use is here
class lockf_t
      ^
winsup/cygwin/flock.cc:1441:13: note: did you mean class here?
  if (lf == NOLOCKF)
            ^
winsup/cygwin/flock.cc:907:18: note: expanded from:
#define NOLOCKF (struct lockf_t *)0
                 ^
winsup/cygwin/flock.cc:1566:10: error: struct 'lockf_t' was previously declared as a class [-Werror,-Wmismatched-tags]
  return NOLOCKF;
         ^
winsup/cygwin/flock.cc:907:18: note: expanded from:
#define NOLOCKF (struct lockf_t *)0
                 ^
winsup/cygwin/flock.cc:246:7: note: previous use is here
class lockf_t
      ^
winsup/cygwin/flock.cc:1566:10: note: did you mean class here?
  return NOLOCKF;
         ^
winsup/cygwin/flock.cc:907:18: note: expanded from:
#define NOLOCKF (struct lockf_t *)0
                 ^
winsup/cygwin/flock.cc:1583:13: error: struct 'lockf_t' was previously declared as a class [-Werror,-Wmismatched-tags]
  if (lf == NOLOCKF)
            ^
winsup/cygwin/flock.cc:907:18: note: expanded from:
#define NOLOCKF (struct lockf_t *)0
                 ^
winsup/cygwin/flock.cc:246:7: note: previous use is here
class lockf_t
      ^
winsup/cygwin/flock.cc:1583:13: note: did you mean class here?
  if (lf == NOLOCKF)
            ^
winsup/cygwin/flock.cc:907:18: note: expanded from:
#define NOLOCKF (struct lockf_t *)0
                 ^
winsup/cygwin/flock.cc:1588:16: error: struct 'lockf_t' was previously declared as a class [-Werror,-Wmismatched-tags]
  while (lf != NOLOCKF)
               ^
winsup/cygwin/flock.cc:907:18: note: expanded from:
#define NOLOCKF (struct lockf_t *)0
                 ^
winsup/cygwin/flock.cc:246:7: note: previous use is here
class lockf_t
      ^
winsup/cygwin/flock.cc:1588:16: note: did you mean class here?
  while (lf != NOLOCKF)
               ^
winsup/cygwin/flock.cc:907:18: note: expanded from:
#define NOLOCKF (struct lockf_t *)0
                 ^

winsup/cygwin/globals.cc:92:36: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_empty = _ROU (L"");
                                   ^
winsup/cygwin/globals.cc:89:4: note: expanded from:
        { Length: sizeof (_s) - sizeof (WCHAR), \
          ^
winsup/cygwin/globals.cc:92:36: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_empty = _ROU (L"");
                                   ^
winsup/cygwin/globals.cc:90:4: note: expanded from:
          MaximumLength: sizeof (_s), \
          ^
winsup/cygwin/globals.cc:92:36: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_empty = _ROU (L"");
                                   ^
winsup/cygwin/globals.cc:91:4: note: expanded from:
          Buffer: (PWSTR) (_s) }
          ^
winsup/cygwin/globals.cc:93:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_lnk = _ROU (L".lnk");
                                 ^
winsup/cygwin/globals.cc:89:4: note: expanded from:
        { Length: sizeof (_s) - sizeof (WCHAR), \
          ^
winsup/cygwin/globals.cc:93:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_lnk = _ROU (L".lnk");
                                 ^
winsup/cygwin/globals.cc:90:4: note: expanded from:
          MaximumLength: sizeof (_s), \
          ^
winsup/cygwin/globals.cc:93:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_lnk = _ROU (L".lnk");
                                 ^
winsup/cygwin/globals.cc:91:4: note: expanded from:
          Buffer: (PWSTR) (_s) }
          ^
winsup/cygwin/globals.cc:94:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_exe = _ROU (L".exe");
                                 ^
winsup/cygwin/globals.cc:89:4: note: expanded from:
        { Length: sizeof (_s) - sizeof (WCHAR), \
          ^
winsup/cygwin/globals.cc:94:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_exe = _ROU (L".exe");
                                 ^
winsup/cygwin/globals.cc:90:4: note: expanded from:
          MaximumLength: sizeof (_s), \
          ^
winsup/cygwin/globals.cc:94:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_exe = _ROU (L".exe");
                                 ^
winsup/cygwin/globals.cc:91:4: note: expanded from:
          Buffer: (PWSTR) (_s) }
          ^
winsup/cygwin/globals.cc:95:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_dll = _ROU (L".dll");
                                 ^
winsup/cygwin/globals.cc:89:4: note: expanded from:
        { Length: sizeof (_s) - sizeof (WCHAR), \
          ^
winsup/cygwin/globals.cc:95:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_dll = _ROU (L".dll");
                                 ^
winsup/cygwin/globals.cc:90:4: note: expanded from:
          MaximumLength: sizeof (_s), \
          ^
winsup/cygwin/globals.cc:95:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_dll = _ROU (L".dll");
                                 ^
winsup/cygwin/globals.cc:91:4: note: expanded from:
          Buffer: (PWSTR) (_s) }
          ^
winsup/cygwin/globals.cc:96:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_com = _ROU (L".com");
                                 ^
winsup/cygwin/globals.cc:89:4: note: expanded from:
        { Length: sizeof (_s) - sizeof (WCHAR), \
          ^
winsup/cygwin/globals.cc:96:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_com = _ROU (L".com");
                                 ^
winsup/cygwin/globals.cc:90:4: note: expanded from:
          MaximumLength: sizeof (_s), \
          ^
winsup/cygwin/globals.cc:96:34: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
UNICODE_STRING _RDATA ro_u_com = _ROU (L".com");
                                 ^
winsup/cygwin/globals.cc:91:4: note: expanded from:
          Buffer: (PWSTR) (_s) }
          ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

winsup/cygwin/kernel32.cc:317:27: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  LARGE_INTEGER size = {{ LowPart  : dwMaximumSizeLow,
                          ^~~~~~~~~~
                          .LowPart = 
winsup/cygwin/kernel32.cc:318:6: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
                          HighPart : dwMaximumSizeHigh }};
                          ^~~~~~~~~~
                          .HighPart = 

winsup/cygwin/mmap.cc:146:33: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  LARGE_INTEGER sectionsize = { QuadPart: len };
                                ^~~~~~~~~
                                .QuadPart = 
winsup/cygwin/mmap.cc:197:28: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  LARGE_INTEGER offset = { QuadPart:off };
                           ^~~~~~~~~
                           .QuadPart = 
winsup/cygwin/mmap.cc:253:5: error: struct 'mmap_record' was previously declared as a class [-Werror,-Wmismatched-tags]
    LIST_ENTRY (mmap_record) mr_next;
    ^
winsup/cygwin/include/sys/queue.h:325:2: note: expanded from:
        struct type *le_next;   /* next element */                      \
        ^
winsup/cygwin/mmap.cc:250:7: note: previous use is here
class mmap_record
      ^
winsup/cygwin/mmap.cc:253:5: error: struct 'mmap_record' was previously declared as a class [-Werror,-Wmismatched-tags]
    LIST_ENTRY (mmap_record) mr_next;
    ^
winsup/cygwin/include/sys/queue.h:326:2: note: expanded from:
        struct type **le_prev;  /* address of previous next element */  \
        ^
winsup/cygwin/mmap.cc:250:7: note: previous use is here
class mmap_record
      ^
winsup/cygwin/mmap.cc:326:5: error: struct 'mmap_list' was previously declared as a class [-Werror,-Wmismatched-tags]
    LIST_ENTRY (mmap_list) ml_next;
    ^
winsup/cygwin/include/sys/queue.h:325:2: note: expanded from:
        struct type *le_next;   /* next element */                      \
        ^
winsup/cygwin/mmap.cc:323:7: note: previous use is here
class mmap_list
      ^
winsup/cygwin/mmap.cc:326:5: error: struct 'mmap_list' was previously declared as a class [-Werror,-Wmismatched-tags]
    LIST_ENTRY (mmap_list) ml_next;
    ^
winsup/cygwin/include/sys/queue.h:326:2: note: expanded from:
        struct type **le_prev;  /* address of previous next element */  \
        ^
winsup/cygwin/mmap.cc:323:7: note: previous use is here
class mmap_list
      ^
winsup/cygwin/mmap.cc:327:5: error: struct 'mmap_record' was previously declared as a class [-Werror,-Wmismatched-tags]
    LIST_HEAD (, mmap_record) recs;
    ^
winsup/cygwin/include/sys/queue.h:317:2: note: expanded from:
        struct type *lh_first;  /* first element */                     \
        ^
winsup/cygwin/mmap.cc:250:7: note: previous use is here
class mmap_record
      ^
winsup/cygwin/mmap.cc:327:5: note: did you mean class here?
    LIST_HEAD (, mmap_record) recs;
    ^
winsup/cygwin/include/sys/queue.h:317:2: note: expanded from:
        struct type *lh_first;  /* first element */                     \
        ^
winsup/cygwin/mmap.cc:347:5: error: struct 'mmap_list' was previously declared as a class [-Werror,-Wmismatched-tags]
    LIST_HEAD (, mmap_list) lists;
    ^
winsup/cygwin/include/sys/queue.h:317:2: note: expanded from:
        struct type *lh_first;  /* first element */                     \
        ^
winsup/cygwin/mmap.cc:323:7: note: previous use is here
class mmap_list
      ^
winsup/cygwin/mmap.cc:347:5: note: did you mean class here?
    LIST_HEAD (, mmap_list) lists;
    ^
winsup/cygwin/include/sys/queue.h:317:2: note: expanded from:
        struct type *lh_first;  /* first element */                     \
        ^

winsup/cygwin/net.cc:1125:44: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
  if ((complen = dn_skipname (ptr, eomsg)) < 0)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
winsup/cygwin/net.cc:1133:48: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
      if ((complen = dn_skipname (ptr, eomsg)) < 0)
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

winsup/cygwin/path.cc:1833:25: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  LARGE_INTEGER off = { QuadPart:0LL };
                        ^~~~~~~~~
                        .QuadPart = 
winsup/cygwin/path.cc:1911:25: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  LARGE_INTEGER off = { QuadPart:0LL };
                        ^~~~~~~~~
                        .QuadPart = 
winsup/cygwin/path.cc:2778:14: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
  if (buflen < 0)
      ~~~~~~ ^ ~

winsup/cygwin/sec_auth.cc:807:25: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  LARGE_INTEGER exp = { QuadPart:INT64_MAX };
                        ^~~~~~~~~
                        .QuadPart = 

winsup/cygwin/sigproc.cc:552:7: error: no matching constructor for initialization of 'cygthread'
  new cygthread (wait_sig, cygself, "sig");
      ^          ~~~~~~~~~~~~~~~~~~~~~~~~
winsup/cygwin/cygthread.h:51:3: note: candidate constructor not viable: no known conversion from 'void (void *) __attribute__((stdcall))' to 'LPVOID_THREAD_START_ROUTINE' (aka 'void (*)(void *) __attribute__((stdcall)) __attribute__((noreturn))') for 1st argument; 
  cygthread (LPVOID_THREAD_START_ROUTINE start, LPVOID param, const char *name)
  ^
winsup/cygwin/cygthread.h:57:3: note: candidate constructor not viable: no known conversion from 'void (void *) __attribute__((stdcall))' to 'LPTHREAD_START_ROUTINE' (aka 'DWORD (*)(LPVOID) __attribute__((stdcall))') for 1st argument; 
  cygthread (LPTHREAD_START_ROUTINE start, LPVOID param, const char *name, HANDLE notify = NULL)
  ^
winsup/cygwin/cygthread.h:45:3: note: candidate constructor not viable: requires at least 4 arguments, but 3 were provided
  cygthread (LPTHREAD_START_ROUTINE start, unsigned n, LPVOID param, const char *name, HANDLE notify = NULL)
  ^
winsup/cygwin/cygthread.h:63:3: note: candidate constructor not viable: requires 4 arguments, but 3 were provided
  cygthread (LPVOID_THREAD_START_ROUTINE start, unsigned n, LPVOID param, const char *name)
  ^
winsup/cygwin/cygthread.h:69:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided
  cygthread () {};
  ^
winsup/cygwin/cygthread.h:15:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class cygthread
      ^
winsup/cygwin/sigproc.cc:921:31: error: invalid use of member 'children' in static member function
                                             + (nprocs * sizeof (children[0])));
                                                                 ^~~~~~~~

winsup/cygwin/spawn.cc:417:4: error: goto into protected scope
          goto out;
          ^
winsup/cygwin/spawn.cc:433:9: note: jump bypasses initialization of variable length array
  WCHAR wone_line[one_line.ix + 1];
        ^
winsup/cygwin/spawn.cc:389:7: error: goto into protected scope
      goto out;
      ^
winsup/cygwin/spawn.cc:433:9: note: jump bypasses initialization of variable length array
  WCHAR wone_line[one_line.ix + 1];
        ^
winsup/cygwin/spawn.cc:380:5: error: goto into protected scope
    goto out;
    ^
winsup/cygwin/spawn.cc:433:9: note: jump bypasses initialization of variable length array
  WCHAR wone_line[one_line.ix + 1];
        ^
winsup/cygwin/spawn.cc:372:7: error: goto into protected scope
      goto out;
      ^
winsup/cygwin/spawn.cc:433:9: note: jump bypasses initialization of variable length array
  WCHAR wone_line[one_line.ix + 1];
        ^
winsup/cygwin/spawn.cc:346:7: error: goto into protected scope
      goto out;
      ^
winsup/cygwin/spawn.cc:433:9: note: jump bypasses initialization of variable length array
  WCHAR wone_line[one_line.ix + 1];
        ^

winsup/cygwin/sysconf.cc:103:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {cons, {c:ARG_MAX}},                  /*   0, _SC_ARG_MAX */
          ^~
          .c = 
winsup/cygwin/sysconf.cc:104:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {cons, {c:CHILD_MAX}},                /*   1, _SC_CHILD_MAX */
          ^~
          .c = 
winsup/cygwin/sysconf.cc:105:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {cons, {c:CLOCKS_PER_SEC}},           /*   2, _SC_CLK_TCK */
          ^~
          .c = 
winsup/cygwin/sysconf.cc:106:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {cons, {c:NGROUPS_MAX}},              /*   3, _SC_NGROUPS_MAX */
          ^~
          .c = 
winsup/cygwin/sysconf.cc:107:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {func, {f:get_open_max}},             /*   4, _SC_OPEN_MAX */
          ^~
          .f = 
winsup/cygwin/sysconf.cc:108:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {cons, {c:_POSIX_JOB_CONTROL}},       /*   5, _SC_JOB_CONTROL */
          ^~
          .c = 
winsup/cygwin/sysconf.cc:109:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {cons, {c:_POSIX_SAVED_IDS}},         /*   6, _SC_SAVED_IDS */
          ^~
          .c = 
winsup/cygwin/sysconf.cc:110:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {cons, {c:_POSIX_VERSION}},           /*   7, _SC_VERSION */
          ^~
          .c = 
winsup/cygwin/sysconf.cc:111:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {func, {f:get_page_size}},            /*   8, _SC_PAGESIZE */
          ^~
          .f = 
winsup/cygwin/sysconf.cc:112:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {func, {f:get_nproc_values}},         /*   9, _SC_NPROCESSORS_CONF */
          ^~
          .f = 
winsup/cygwin/sysconf.cc:113:11: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  {func, {f:get_nproc_values}},         /*  10, _SC_NPROCESSORS_ONLN */
          ^~
          .f = 
fatal error: too many errors emitted, stopping now [-ferror-limit=]

winsup/cygwin/termios.cc:182:22: error: expression result unused [-Werror,-Wunused-value]
    __toapp_termios (in_t, t);
    ~~~~~~~~~~~~~~~~~^~~~~~~~
winsup/cygwin/include/sys/termios.h:316:5: note: expanded from:
    toti; \
    ^
winsup/cygwin/termios.cc:317:20: error: expression result unused [-Werror,-Wunused-value]
  __toapp_termios (in_tp, tp);
  ~~~~~~~~~~~~~~~~~^~~~~~~~~~
winsup/cygwin/include/sys/termios.h:316:5: note: expanded from:
    toti; \
    ^
winsup/cygwin/termios.cc:327:20: error: expression result unused [-Werror,-Wunused-value]
  __toapp_termios (in_tp, tp);
  ~~~~~~~~~~~~~~~~~^~~~~~~~~~
winsup/cygwin/include/sys/termios.h:316:5: note: expanded from:
    toti; \
    ^

winsup/cygwin/uinfo.cc:55:39: error: expected ']'
      char mb_user_name[user_name_len = sys_wcstombs (NULL, 0, user_name)];
                                      ^
winsup/cygwin/uinfo.cc:55:24: note: to match this '['
      char mb_user_name[user_name_len = sys_wcstombs (NULL, 0, user_name)];
                       ^

winsup/cygwin/wincap.cc:26:68: error: shared attribute ignored [-Werror]
wincaps wincap_2000 __attribute__((section (".cygwin_dll_common"), shared)) = {
                                                                   ^
winsup/cygwin/wincap.cc:27:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  max_sys_priv:SE_MANAGE_VOLUME_PRIVILEGE,
  ^~~~~~~~~~~~~
  .max_sys_priv = 
winsup/cygwin/wincap.cc:28:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  is_server:false,
  ^~~~~~~~~~
  .is_server = 
winsup/cygwin/wincap.cc:29:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_physical_mem_access:true,
  ^~~~~~~~~~~~~~~~~~~~~~~~
  .has_physical_mem_access = 
winsup/cygwin/wincap.cc:30:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_create_global_privilege:false,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  .has_create_global_privilege = 
winsup/cygwin/wincap.cc:31:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_ioctl_storage_get_media_types_ex:false,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  .has_ioctl_storage_get_media_types_ex = 
winsup/cygwin/wincap.cc:32:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_disk_ex_ioctls:false,
  ^~~~~~~~~~~~~~~~~~~
  .has_disk_ex_ioctls = 
winsup/cygwin/wincap.cc:33:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_buggy_restart_scan:true,
  ^~~~~~~~~~~~~~~~~~~~~~~
  .has_buggy_restart_scan = 
winsup/cygwin/wincap.cc:34:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_mandatory_integrity_control:false,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  .has_mandatory_integrity_control = 
winsup/cygwin/wincap.cc:35:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  needs_logon_sid_in_sid_list:true,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  .needs_logon_sid_in_sid_list = 
winsup/cygwin/wincap.cc:36:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  needs_count_in_si_lpres2:false,
  ^~~~~~~~~~~~~~~~~~~~~~~~~
  .needs_count_in_si_lpres2 = 
winsup/cygwin/wincap.cc:37:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_recycle_dot_bin:false,
  ^~~~~~~~~~~~~~~~~~~~
  .has_recycle_dot_bin = 
winsup/cygwin/wincap.cc:38:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_gaa_prefixes:false,
  ^~~~~~~~~~~~~~~~~
  .has_gaa_prefixes = 
winsup/cygwin/wincap.cc:39:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_gaa_on_link_prefix:false,
  ^~~~~~~~~~~~~~~~~~~~~~~
  .has_gaa_on_link_prefix = 
winsup/cygwin/wincap.cc:40:3: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
  has_gaa_largeaddress_bug:false,
  ^~~~~~~~~~~~~~~~~~~~~~~~~
  .has_gaa_largeaddress_bug = 
fatal error: too many errors emitted, stopping now [-ferror-limit=]



More information about the Cygwin-developers mailing list