From: Heinrich Schuchardt Date: Thu, 3 Oct 2019 16:30:23 +0200 Subject: [U-Boot] [BUGS] fs/cbfs/cbfs.c and net/net.c do not compile with GCC 9.2.1 Message-ID: <3f66f60c-3bc0-dcc9-232e-7371c3b42ffa@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Compiling fs/cbfs/cbfs.c and net/net.c fails for sandbox_defconfig using GCC 9.2.1 (Debian Bullseye): CC fs/cbfs/cbfs.o fs/cbfs/cbfs.c: In function ‘file_cbfs_fill_cache’: fs/cbfs/cbfs.c:164:16: error: taking address of packed member of ‘struct cbfs_cachenode’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 164 | cache_tail = &new_node->next; | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [scripts/Makefile.build:279: fs/cbfs/cbfs.o] Error 1 make[1]: *** [scripts/Makefile.build:432: fs/cbfs] Error 2 make: *** [Makefile:1629: fs] Error 2 net/net.c: In function ‘net_process_received_packet’: net/net.c:1288:23: error: taking address of packed member of ‘struct ip_udp_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 1288 | sumptr = (ushort *)&(ip->udp_src); | ^~~~~~~~~~~~~~ Best regards Heinrich