]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/CpuDxe: Fix GCC build warning
authorJian J Wang <jian.j.wang@intel.com>
Fri, 22 Sep 2017 01:31:19 +0000 (09:31 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 22 Sep 2017 03:51:00 +0000 (11:51 +0800)
There're uninitialized variables warning reported by GCC.
This patch will fix it. The original commit is

  c1cab54ce57c2608b8b3ea051c7041f036f21153

Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Anthony PERARD <anthony.perard@citrix.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
UefiCpuPkg/CpuDxe/CpuPageTable.c

index ae93f3f5534f446ae2f066922c50c83e61acb20f..d312eb66f87ce7e4723a3946085c70d23642b790 100644 (file)
@@ -802,8 +802,12 @@ RefreshGcdMemoryAttributesFromPaging (
 \r
   GetCurrentPagingContext (&PagingContext);\r
 \r
-  BaseAddress = 0;\r
-  PageLength  = 0;\r
+  DoUpdate      = FALSE;\r
+  Capabilities  = 0;\r
+  Attributes    = 0;\r
+  BaseAddress   = 0;\r
+  PageLength    = 0;\r
+\r
   for (Index = 0; Index < NumberOfDescriptors; Index++) {\r
     if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {\r
       continue;\r