From: A1ive <10670106+a1ive@users.noreply.github.com> Date: Sat, 6 Jun 2020 03:31:39 +0000 (+0800) Subject: Fix iPXE '-Werror=zero-length-bounds' (#202) X-Git-Tag: v1.0.13~5 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/74154ad9a3fc72ea9e66142df528e1fed42dfebd?ds=sidebyside Fix iPXE '-Werror=zero-length-bounds' (#202) --- diff --git a/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ipxe/sanboot.h b/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ipxe/sanboot.h index d9b9de4..e61d839 100644 --- a/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ipxe/sanboot.h +++ b/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ipxe/sanboot.h @@ -85,13 +85,14 @@ struct san_device { struct list_head opened; /** List of closed SAN paths */ struct list_head closed; - /** SAN paths */ - struct san_path path[0]; unsigned int exdrive; int int13_command; void *x86_regptr; uint8_t boot_catalog_sector[2048]; + + /** SAN paths */ + struct san_path path[0]; }; /** SAN device flags */