Re: wpa-supplicant fails to build with GCC 10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 15, 2020 at 03:23:53PM +0100, Andrej Shadura wrote:
> GCC 10 has made -Werror=array-bounds the default, leading to this:

> > /<<PKGBUILDDIR>>/src/utils/list.h:68:3: error: array subscript -4 is outside array bounds of ‘struct dl_list[1]’ [-Werror=array-bounds]
> >    68 |  ((type *) ((char *) item - offsetof(type, member)))
> >       |  ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > /<<PKGBUILDDIR>>/src/utils/list.h:80:23: note: in expansion of macro ‘dl_list_entry’
> >    80 |       item && item != dl_list_entry((list), type, member); \
> >       |                       ^~~~~~~~~~~~~

This is now fixed (or worked around) by
https://w1.fi/cgit/hostap/commit/?id=bba926350a0e28fa181af7caee24a11619ad10fc

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux