QuarkPlatformPkg: Fix variable set but not used build errors

Fix variable set but not used errors detected by GCC 4.8.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Lee Leahy
2016-05-11 16:08:27 -07:00
committed by Michael Kinney
parent fb308fdb98
commit 0c5d407978
3 changed files with 4 additions and 23 deletions

View File

@ -2,7 +2,7 @@
Processor power management initialization code. Processor power management initialization code.
Copyright (c) 2013-2015 Intel Corporation. Copyright (c) 2013-2016 Intel Corporation.
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -79,7 +79,6 @@ PpmPatchFadtTable (
EFI_ACPI_TABLE_VERSION Version; EFI_ACPI_TABLE_VERSION Version;
UINTN Index; UINTN Index;
UINTN Handle; UINTN Handle;
EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE *FadtPointer;
// //
// Scan all the acpi tables to find FADT 2.0 // Scan all the acpi tables to find FADT 2.0
@ -106,8 +105,6 @@ PpmPatchFadtTable (
ASSERT (Table != NULL); ASSERT (Table != NULL);
CopyMem (Table, CurrentTable, CurrentTable->Length); CopyMem (Table, CurrentTable, CurrentTable->Length);
FadtPointer = (EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE*) Table;
// //
// Update the ACPI table and recalculate checksum // Update the ACPI table and recalculate checksum
// //
@ -322,7 +319,6 @@ PpmLoadAndPatchPMTables (
UINTN TableHandle; UINTN TableHandle;
UINT32 FvStatus; UINT32 FvStatus;
UINTN Size; UINTN Size;
EFI_ACPI_TABLE_VERSION Version;
Status = LocateSupportProtocol (&gEfiFirmwareVolume2ProtocolGuid, (VOID**)&FwVol, 1); Status = LocateSupportProtocol (&gEfiFirmwareVolume2ProtocolGuid, (VOID**)&FwVol, 1);
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
@ -348,14 +344,6 @@ PpmLoadAndPatchPMTables (
); );
if (!EFI_ERROR(Status)) { if (!EFI_ERROR(Status)) {
Version = EFI_ACPI_TABLE_VERSION_1_0B | EFI_ACPI_TABLE_VERSION_2_0 | EFI_ACPI_TABLE_VERSION_3_0;
if(((EFI_ACPI_DESCRIPTION_HEADER*) CurrentTable)->OemTableId == SIGNATURE_64 ('C', 'p', 'u', '0', 'I', 's', 't', 0)) {
Version = EFI_ACPI_TABLE_VERSION_NONE;
} else if(((EFI_ACPI_DESCRIPTION_HEADER*) CurrentTable)->OemTableId == SIGNATURE_64 ('C', 'p', 'u', '1', 'I', 's', 't', 0)) {
Version = EFI_ACPI_TABLE_VERSION_NONE;
}
SsdtTableUpdate ((EFI_ACPI_DESCRIPTION_HEADER *) CurrentTable); SsdtTableUpdate ((EFI_ACPI_DESCRIPTION_HEADER *) CurrentTable);
// //

View File

@ -1,7 +1,7 @@
/** @file /** @file
Implementation of Helper routines for PEI enviroment. Implementation of Helper routines for PEI enviroment.
Copyright (c) 2013-2015 Intel Corporation. Copyright (c) 2013-2016 Intel Corporation.
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -63,7 +63,6 @@ PlatformFindFvFileRawDataSection (
EFI_SECTION_TYPE SearchType; EFI_SECTION_TYPE SearchType;
EFI_FV_INFO VolumeInfo; EFI_FV_INFO VolumeInfo;
EFI_FV_FILE_INFO FileInfo; EFI_FV_FILE_INFO FileInfo;
CONST EFI_PEI_SERVICES **PeiServices;
if (FileNameGuid == NULL || SectionData == NULL || SectionDataSize == NULL) { if (FileNameGuid == NULL || SectionData == NULL || SectionDataSize == NULL) {
return EFI_INVALID_PARAMETER; return EFI_INVALID_PARAMETER;
@ -71,7 +70,6 @@ PlatformFindFvFileRawDataSection (
*SectionData = NULL; *SectionData = NULL;
*SectionDataSize = 0; *SectionDataSize = 0;
PeiServices = GetPeiServicesTablePointer ();
SearchType = EFI_SECTION_RAW; SearchType = EFI_SECTION_RAW;
for (Instance = 0; !EFI_ERROR((PeiServicesFfsFindNextVolume (Instance, &VolumeHandle))); Instance++) { for (Instance = 0; !EFI_ERROR((PeiServicesFfsFindNextVolume (Instance, &VolumeHandle))); Instance++) {
if (FvNameGuid != NULL) { if (FvNameGuid != NULL) {

View File

@ -1,6 +1,6 @@
/** @file /** @file
Copyright (c) 2013-2015 Intel Corporation. Copyright (c) 2013-2016 Intel Corporation.
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -590,9 +590,6 @@ Returns:
--*/ --*/
{ {
EFI_STATUS Status; EFI_STATUS Status;
UINTN NumBytes;
NumBytes = LbaLength;
WriteAddress -= (PcdGet32 (PcdFlashAreaBaseAddress)); WriteAddress -= (PcdGet32 (PcdFlashAreaBaseAddress));
if (mInSmmMode == 0 ) { // !(EfiInManagementInterrupt ())) { if (mInSmmMode == 0 ) { // !(EfiInManagementInterrupt ())) {
@ -1638,7 +1635,6 @@ Returns:
VOID *FirmwareVolumeHobList; VOID *FirmwareVolumeHobList;
UINT32 BufferSize; UINT32 BufferSize;
EFI_FV_BLOCK_MAP_ENTRY *PtrBlockMapEntry; EFI_FV_BLOCK_MAP_ENTRY *PtrBlockMapEntry;
UINTN LbaAddress;
BOOLEAN WriteEnabled; BOOLEAN WriteEnabled;
BOOLEAN WriteLocked; BOOLEAN WriteLocked;
EFI_HANDLE FwbHandle; EFI_HANDLE FwbHandle;
@ -1882,7 +1878,6 @@ Returns:
FwhInstance->WriteEnabled = WriteEnabled; FwhInstance->WriteEnabled = WriteEnabled;
EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL); EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);
LbaAddress = (UINTN) FwhInstance->FvWriteBase[0];
NumOfBlocks = 0; NumOfBlocks = 0;
WriteLocked = FALSE; WriteLocked = FALSE;