diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2023-05-26 15:18:51 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-05-29 06:40:12 +0000 |
commit | c0bce66068c76b5d46f901027daf1074316031ac (patch) | |
tree | f1e27faff4c4388b3f54253fff4cb9a0da7564b2 | |
parent | e1f5c6249af08c1df2c6257e4bb6abbf6134318c (diff) | |
download | edk2-c0bce66068c76b5d46f901027daf1074316031ac.zip edk2-c0bce66068c76b5d46f901027daf1074316031ac.tar.gz edk2-c0bce66068c76b5d46f901027daf1074316031ac.tar.bz2 |
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>
-rw-r--r-- | OvmfPkg/VirtioSerialDxe/VirtioSerial.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OvmfPkg/VirtioSerialDxe/VirtioSerial.c b/OvmfPkg/VirtioSerialDxe/VirtioSerial.c index bfb2b32..df545c0 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,
|