mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/CpuDxe: Fix GCC build warning
There're uninitialized variables warning reported by GCC.
This patch will fix it. The original commit is
c1cab54ce5
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>
This commit is contained in:
parent
09e8678380
commit
96207191fd
|
@ -802,8 +802,12 @@ RefreshGcdMemoryAttributesFromPaging (
|
|||
|
||||
GetCurrentPagingContext (&PagingContext);
|
||||
|
||||
BaseAddress = 0;
|
||||
PageLength = 0;
|
||||
DoUpdate = FALSE;
|
||||
Capabilities = 0;
|
||||
Attributes = 0;
|
||||
BaseAddress = 0;
|
||||
PageLength = 0;
|
||||
|
||||
for (Index = 0; Index < NumberOfDescriptors; Index++) {
|
||||
if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue