Move initialization of local variable structure from declaration to statements to fix VS2015x86 build break.
Cc: Ard Biesheuvel <[email protected]> Cc: Jiewen Yao <[email protected]> Cc: Jordan Justen <[email protected]> Cc: Gerd Hoffmann <[email protected]> Signed-off-by: Michael D Kinney <[email protected]> --- OvmfPkg/VirtioSerialDxe/VirtioSerial.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OvmfPkg/VirtioSerialDxe/VirtioSerial.c b/OvmfPkg/VirtioSerialDxe/VirtioSerial.c index bfb2b324eadf..df545c080e9d 100644 --- a/OvmfPkg/VirtioSerialDxe/VirtioSerial.c +++ b/OvmfPkg/VirtioSerialDxe/VirtioSerial.c @@ -66,11 +66,11 @@ VirtioSerialTxControl ( IN UINT16 Value ) { - VIRTIO_SERIAL_CONTROL Control = { - .Id = Id, - .Event = Event, - .Value = Value, - }; + VIRTIO_SERIAL_CONTROL Control; + + Control.Id = Id; + Control.Event = Event; + Control.Value = Value; DEBUG (( DEBUG_INFO, -- 2.40.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#105347): https://edk2.groups.io/g/devel/message/105347 Mute This Topic: https://groups.io/mt/99160001/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
