From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.1088.1685143068767596852 for ; Fri, 26 May 2023 16:17:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=eyFCN/7m; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: michael.d.kinney@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685143068; x=1716679068; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MinQBVtsY3vJjBBuvgieNZBHiKQluh92CbYcJzZufUE=; b=eyFCN/7mOTpCSOeR26+HhCCh00ScUudVguqqtg34BgIWvwzXK9LlwWp2 yDiqBwF10uKcf0PzoWhEVdwMk14oEIwd8pdhN8REpJySzPMPkhZcSlMON a953mJeG28T0aYKyaZiTE6J4eBYEMToqbLFfhua7BIJQ7d/q8wdSGomLy ZlpoB1mGAwk8kVO62E+NPTOhFa28F7Fa+OExxdhgKt1cfWQJkbpQjKqeI +CfbPmhKds+9LnYnGPKu7yVuhEAFtSRJsiv0zsXCQCjoUlBX1oKIN4Ycq urFJlA0RffeCJ1gkfkPMwyrLnrC2CZviY/BJgD1nm6ENAVIgbgvTgkWvL Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="382579239" X-IronPort-AV: E=Sophos;i="6.00,195,1681196400"; d="scan'208";a="382579239" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2023 16:17:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="699558544" X-IronPort-AV: E=Sophos;i="6.00,195,1681196400"; d="scan'208";a="699558544" Received: from mdkinney-mobl.amr.corp.intel.com ([10.212.215.94]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2023 16:17:44 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann Subject: [Patch 1/1] OvmfPkg/VirtIoSerialDxe: Update for VS2015x86 compatibility Date: Fri, 26 May 2023 16:17:34 -0700 Message-Id: <20230526231734.1445-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.40.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Move initialization of local variable structure from declaration to statements to fix VS2015x86 build break. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Michael D Kinney --- 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