From 74154ad9a3fc72ea9e66142df528e1fed42dfebd Mon Sep 17 00:00:00 2001 From: A1ive <10670106+a1ive@users.noreply.github.com> Date: Sat, 6 Jun 2020 11:31:39 +0800 Subject: [PATCH] Fix iPXE '-Werror=zero-length-bounds' (#202) --- IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ipxe/sanboot.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 d9b9de49..e61d8394 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 */