mirror of https://gitee.com/openkylin/qemu.git
a6e4385dea
I've run into a compilation error today with the current version of GCC 8: In file included from s390-ccw.h:49, from main.c:12: cio.h:128:1: error: alignment 1 of 'struct tpi_info' is less than 4 [-Werror=packed-not-aligned] } __attribute__ ((packed)); ^ cc1: all warnings being treated as errors Since the struct tpi_info contains an element ("struct subchannel_id schid") which is marked as aligned(4), we've got to mark the struct tpi_info as aligned(4), too. CC: qemu-stable@nongnu.org Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1525774672-11913-1-git-send-email-thuth@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com> |
||
---|---|---|
.. | ||
Makefile | ||
bootmap.c | ||
bootmap.h | ||
bswap.h | ||
cio.h | ||
iplb.h | ||
jump2ipl.c | ||
libc.c | ||
libc.h | ||
main.c | ||
menu.c | ||
netboot.mak | ||
netmain.c | ||
s390-ccw.h | ||
sclp.c | ||
sclp.h | ||
scsi.h | ||
start.S | ||
virtio-blkdev.c | ||
virtio-net.c | ||
virtio-scsi.c | ||
virtio-scsi.h | ||
virtio.c | ||
virtio.h |