hfs: Fix gcc9 error -Waddress-of-packed-member
Simply adds the missing packed attribute to 'struct grub_hfs_extent'. [ 83s] ../grub-core/fs/hfs.c: In function 'grub_hfs_iterate_records': [ 83s] ../grub-core/fs/hfs.c:699:9: error: taking address of packed member of 'struct grub_hfs_sblock' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 83s] 699 | ? (&data->sblock.catalog_recs) [ 83s] | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 83s] ../grub-core/fs/hfs.c:700:9: error: taking address of packed member of 'struct grub_hfs_sblock' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 83s] 700 | : (&data->sblock.extent_recs)); [ 83s] | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Michael Chang <mchang@suse.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
4f4128defd
commit
0e49748fad
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ struct grub_hfs_extent
|
||||||
/* The first physical block. */
|
/* The first physical block. */
|
||||||
grub_uint16_t first_block;
|
grub_uint16_t first_block;
|
||||||
grub_uint16_t count;
|
grub_uint16_t count;
|
||||||
};
|
} GRUB_PACKED;
|
||||||
|
|
||||||
/* HFS stores extents in groups of 3. */
|
/* HFS stores extents in groups of 3. */
|
||||||
typedef struct grub_hfs_extent grub_hfs_datarecord_t[3];
|
typedef struct grub_hfs_extent grub_hfs_datarecord_t[3];
|
||||||
|
|
Loading…
Reference in a new issue