On 29/03/2019 12.11, Daniel P. Berrangé wrote:
> Compiling with GCC 9 complains
> 
> hw/s390x/ipl.c: In function ‘s390_ipl_set_boot_menu’:
> hw/s390x/ipl.c:256:25: warning: taking address of packed member of ‘struct 
> QemuIplParameters’ may result in an unaligned pointer value 
> [-Waddress-of-packed-member]
>   256 |     uint32_t *timeout = &ipl->qipl.boot_menu_timeout;
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> This local variable is only present to save a little bit of
> typing when setting the field later. Get rid of this to avoid
> the warning about unaligned accesses.
> 
> Signed-off-by: Daniel P. Berrangé <berra...@redhat.com>
> ---

Reviewed-by: Thomas Huth <th...@redhat.com>

Reply via email to