From c7085da7266120a8594f8fddcbf3b6839a8eda58 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 13 Jun 2009 13:20:25 +0000 Subject: [PATCH] Avoid gcc 4.4 warning about uninitialized field Signed-off-by: Blue Swirl --- hw/virtio-blk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 8dd3c7a..9a0c067 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -299,6 +299,7 @@ static void virtio_blk_update_config(VirtIODevice *vdev, uint8_t *config) stw_raw(&blkcfg.cylinders, cylinders); blkcfg.heads = heads; blkcfg.sectors = secs; + blkcfg.size_max = 0; memcpy(config, &blkcfg, sizeof(blkcfg)); } -- 2.7.4