From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web09.818.1582679276814082381 for ; Tue, 25 Feb 2020 17:07:56 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: siyuan.fu@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2020 17:07:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,486,1574150400"; d="scan'208";a="260891541" Received: from shwdeopenpsi787.ccr.corp.intel.com ([10.239.158.56]) by fmsmga004.fm.intel.com with ESMTP; 25 Feb 2020 17:07:55 -0800 From: "Siyuan, Fu" To: devel@edk2.groups.io Cc: Ray Ni , Rangasai V Chaganty Subject: [Patch] IntelSiliconPkg: Declare zero array explicitly to avoid compiler error. Date: Wed, 26 Feb 2020 09:07:53 +0800 Message-Id: <20200226010753.44716-1-siyuan.fu@intel.com> X-Mailer: git-send-email 2.19.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch fixes a potential compiler error introduced by commit b0099a39bd since not all compiler can support empty array member. BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=2449 Cc: Ray Ni Cc: Rangasai V Chaganty Signed-off-by: Siyuan Fu --- .../Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h index d1a9d79a51..d887b39123 100644 --- a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h +++ b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h @@ -33,7 +33,7 @@ typedef struct { // An array with MicrocodeCount elements that stores // the shadowed microcode patch address in memory. // - UINT64 MicrocodeAddrInMemory[]; + UINT64 MicrocodeAddrInMemory[0]; // // A buffer which contains details about the storage information // specific to StorageType. -- 2.19.1.windows.1