mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdeModulePkg: PeiMain: fix warning about uninitialized variable
Dispatcher.c:1639:34: error: 'FvMigrationFlags' may be used uninitialized in this function [-Werror=maybe-uninitialized] (((FvMigrationFlags & FLAGS_FV_MIGRATE_BEFORE_PEI_CORE_REENTRY) == 0) || ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This commit is contained in:
parent
bba72ffbe1
commit
a5cb67fb8d
@ -1563,6 +1563,11 @@ EvacuateTempRam (
|
||||
|
||||
DEBUG ((DEBUG_VERBOSE, "Beginning evacuation of content in temporary RAM.\n"));
|
||||
|
||||
//
|
||||
// By default migrate all FVs and copy raw data
|
||||
//
|
||||
FvMigrationFlags = FLAGS_FV_RAW_DATA_COPY;
|
||||
|
||||
//
|
||||
// Migrate PPI Pointers of PEI_CORE from temporary memory to newly loaded PEI_CORE in permanent memory.
|
||||
//
|
||||
@ -1617,11 +1622,6 @@ EvacuateTempRam (
|
||||
//
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
//
|
||||
// Migrate all FVs and copy raw data
|
||||
//
|
||||
FvMigrationFlags = FLAGS_FV_RAW_DATA_COPY;
|
||||
} else {
|
||||
for (Index = 0; Index < MigrationInfo->ToMigrateFvCount; Index++) {
|
||||
ToMigrateFvInfo = ((TO_MIGRATE_FV_INFO *)(MigrationInfo + 1)) + Index;
|
||||
|
Loading…
x
Reference in New Issue
Block a user