On Sat, 27 May 2023 at 01:17, Michael D Kinney <[email protected]> wrote: > > 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]>
Reviewed-by: Ard Biesheuvel <[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 (#105351): https://edk2.groups.io/g/devel/message/105351 Mute This Topic: https://groups.io/mt/99160001/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
