]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix iPXE '-Werror=zero-length-bounds' (#202)
authorA1ive <10670106+a1ive@users.noreply.github.com>
Sat, 6 Jun 2020 03:31:39 +0000 (11:31 +0800)
committerGitHub <noreply@github.com>
Sat, 6 Jun 2020 03:31:39 +0000 (11:31 +0800)
IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ipxe/sanboot.h

index d9b9de4964abd3832e3ca617c0962fefe254ba53..e61d8394bd5dd295ddbf5277ffb514ba53582cb1 100644 (file)
@@ -85,13 +85,14 @@ struct san_device {
        struct list_head opened;
        /** List of closed SAN paths */
        struct list_head closed;
        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];
 
     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 */
 };
 
 /** SAN device flags */