mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Avoid gcc 4.4 warning about uninitialized field
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user