mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
UefiCpuPkg/CpuDxe: Fix GCC build warning
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>
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…
x
Reference in New Issue
Block a user