summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/VirtioSerialDxe
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2023-05-26 15:18:51 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-05-29 06:40:12 +0000
commitc0bce66068c76b5d46f901027daf1074316031ac (patch)
treef1e27faff4c4388b3f54253fff4cb9a0da7564b2 /OvmfPkg/VirtioSerialDxe
parente1f5c6249af08c1df2c6257e4bb6abbf6134318c (diff)
downloadedk2-c0bce66068c76b5d46f901027daf1074316031ac.tar.gz
edk2-c0bce66068c76b5d46f901027daf1074316031ac.tar.bz2
edk2-c0bce66068c76b5d46f901027daf1074316031ac.zip
OvmfPkg/VirtIoSerialDxe: Update for VS2015x86 compatibility
Move initialization of local variable structure from declaration to statements to fix VS2015x86 build break. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ard Biesheuvel <ardb+tianocore@kernel.org>
Diffstat (limited to 'OvmfPkg/VirtioSerialDxe')
-rw-r--r--OvmfPkg/VirtioSerialDxe/VirtioSerial.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/OvmfPkg/VirtioSerialDxe/VirtioSerial.c b/OvmfPkg/VirtioSerialDxe/VirtioSerial.c
index bfb2b324ea..df545c080e 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,