wpa-supplicant fails to build with GCC 10

Jouni Malinen j at w1.fi
Fri Dec 4 10:00:35 EST 2020


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



More information about the Hostap mailing list