Fix build errors detected with GCC 4.8.4: local variable set but not
used!
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>
/** @file\r
Update the _PRT and _PRW method for pci devices\r
\r
/** @file\r
Update the _PRT and _PRW method for pci devices\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
{\r
UINTN SegCount;\r
UINTN Length;\r
{\r
UINTN SegCount;\r
UINTN Length;\r
/** @file\r
ACPI Platform Driver\r
\r
/** @file\r
ACPI Platform Driver\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
UINT8 CurrProcessor;\r
UINTN NumberOfCPUs;\r
UINTN NumberOfEnabledCPUs;\r
UINT8 CurrProcessor;\r
UINTN NumberOfCPUs;\r
UINTN NumberOfEnabledCPUs;\r
EFI_PROCESSOR_INFORMATION MpContext;\r
ACPI_APIC_STRUCTURE_PTR *ApicPtr;\r
\r
EFI_PROCESSOR_INFORMATION MpContext;\r
ACPI_APIC_STRUCTURE_PTR *ApicPtr;\r
\r
switch (ApicPtr->AcpiApicCommon.Type) {\r
\r
case EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC:\r
switch (ApicPtr->AcpiApicCommon.Type) {\r
\r
case EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC:\r
- BufferSize = sizeof (EFI_PROCESSOR_INFORMATION);\r
ApicPtr->AcpiLocalApic.Flags = 0;\r
ApicPtr->AcpiLocalApic.ApicId = 0;\r
Status = MpService->GetProcessorInfo (\r
ApicPtr->AcpiLocalApic.Flags = 0;\r
ApicPtr->AcpiLocalApic.ApicId = 0;\r
Status = MpService->GetProcessorInfo (\r
UINT32 FvStatus;\r
UINTN Size;\r
EFI_ACPI_TABLE_VERSION Version;\r
UINT32 FvStatus;\r
UINTN Size;\r
EFI_ACPI_TABLE_VERSION Version;\r
- QNC_DEVICE_ENABLES QNCDeviceEnables;\r
EFI_HANDLE Handle;\r
UINTN Index;\r
PCI_DEVICE_INFO *PciDeviceInfo;\r
EFI_HANDLE Handle;\r
UINTN Index;\r
PCI_DEVICE_INFO *PciDeviceInfo;\r
TableHandle = 0;\r
CurrentTable = NULL;\r
mConfigData = NULL;\r
TableHandle = 0;\r
CurrentTable = NULL;\r
mConfigData = NULL;\r
- QNCDeviceEnables.Uint32 = PcdGet32 (PcdDeviceEnables);\r
\r
//\r
// Initialize the EFI Driver Library\r
\r
//\r
// Initialize the EFI Driver Library\r
This driver parses the mSmbiosMiscDataTable structure and reports\r
any generated data.\r
\r
This driver parses the mSmbiosMiscDataTable structure and reports\r
any generated data.\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
CHAR8 CurrentLang[SMBIOS_STRING_MAX_LENGTH + 1];\r
CHAR8 *OptionalStrStart;\r
UINT16 Offset;\r
CHAR8 CurrentLang[SMBIOS_STRING_MAX_LENGTH + 1];\r
CHAR8 *OptionalStrStart;\r
UINT16 Offset;\r
EFI_STATUS Status;\r
EFI_SMBIOS_HANDLE SmbiosHandle;\r
SMBIOS_TABLE_TYPE13 *SmbiosRecord;\r
EFI_STATUS Status;\r
EFI_SMBIOS_HANDLE SmbiosHandle;\r
SMBIOS_TABLE_TYPE13 *SmbiosRecord;\r
//\r
// Try to check if current langcode matches with the langcodes in installed languages\r
//\r
//\r
// Try to check if current langcode matches with the langcodes in installed languages\r
//\r
ZeroMem(CurrentLang, SMBIOS_STRING_MAX_LENGTH + 1);\r
ZeroMem(CurrentLang, SMBIOS_STRING_MAX_LENGTH + 1);\r
- LangMatch = CurrentLanguageMatch (mHiiHandle, &Offset, CurrentLang);\r
+ CurrentLanguageMatch (mHiiHandle, &Offset, CurrentLang);\r
LangStrLen = AsciiStrLen(CurrentLang);\r
\r
//\r
LangStrLen = AsciiStrLen(CurrentLang);\r
\r
//\r
boot information boot time changes.\r
SMBIOS type 11.\r
\r
boot information boot time changes.\r
SMBIOS type 11.\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
STRING_REF TokenToGet;\r
EFI_SMBIOS_HANDLE SmbiosHandle;\r
SMBIOS_TABLE_TYPE11 *SmbiosRecord;\r
STRING_REF TokenToGet;\r
EFI_SMBIOS_HANDLE SmbiosHandle;\r
SMBIOS_TABLE_TYPE11 *SmbiosRecord;\r
- EFI_MISC_OEM_STRING *ForType11InputData;\r
-\r
- ForType11InputData = (EFI_MISC_OEM_STRING *)RecordData;\r
\r
//\r
// First check for invalid parameters.\r
\r
//\r
// First check for invalid parameters.\r
BIOS system option string boot time changes.\r
SMBIOS type 12.\r
\r
BIOS system option string boot time changes.\r
SMBIOS type 12.\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
STRING_REF TokenToGet;\r
EFI_SMBIOS_HANDLE SmbiosHandle;\r
SMBIOS_TABLE_TYPE12 *SmbiosRecord;\r
STRING_REF TokenToGet;\r
EFI_SMBIOS_HANDLE SmbiosHandle;\r
SMBIOS_TABLE_TYPE12 *SmbiosRecord;\r
- EFI_MISC_SYSTEM_OPTION_STRING *ForType12InputData;\r
-\r
- ForType12InputData = (EFI_MISC_SYSTEM_OPTION_STRING *)RecordData;\r
\r
//\r
// First check for invalid parameters.\r
\r
//\r
// First check for invalid parameters.\r
Install Platform EFI_PEI_RECOVERY_MODULE_PPI and Implementation of\r
EFI_PEI_LOAD_RECOVERY_CAPSULE service.\r
\r
Install Platform EFI_PEI_RECOVERY_MODULE_PPI and Implementation of\r
EFI_PEI_LOAD_RECOVERY_CAPSULE service.\r
\r
-Copyright (c) 2013 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
UINTN NumberRecoveryCapsules;\r
UINTN RecoveryCapsuleSize;\r
EFI_GUID DeviceId;\r
UINTN NumberRecoveryCapsules;\r
UINTN RecoveryCapsuleSize;\r
EFI_GUID DeviceId;\r
EFI_PHYSICAL_ADDRESS Address;\r
VOID *Buffer;\r
EFI_CAPSULE_HEADER *CapsuleHeader;\r
EFI_PEI_HOB_POINTERS Hob;\r
EFI_PHYSICAL_ADDRESS Address;\r
VOID *Buffer;\r
EFI_CAPSULE_HEADER *CapsuleHeader;\r
EFI_PEI_HOB_POINTERS Hob;\r
- EFI_PEI_HOB_POINTERS HobOld;\r
BOOLEAN HobUpdate;\r
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;\r
UINTN Index;\r
BOOLEAN HobUpdate;\r
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;\r
UINTN Index;\r
- EFI_STATUS AuthStatus;\r
EFI_GUID mEfiCapsuleHeaderGuid = QUARK_CAPSULE_GUID;\r
\r
Index = 0;\r
\r
Status = EFI_SUCCESS;\r
EFI_GUID mEfiCapsuleHeaderGuid = QUARK_CAPSULE_GUID;\r
\r
Index = 0;\r
\r
Status = EFI_SUCCESS;\r
- AuthStatus = EFI_SUCCESS;\r
HobUpdate = FALSE;\r
\r
ProviderAvailable = TRUE;\r
HobUpdate = FALSE;\r
\r
ProviderAvailable = TRUE;\r
NumberOfImageProviders = 0;\r
\r
DeviceRecoveryModule = NULL;\r
NumberOfImageProviders = 0;\r
\r
DeviceRecoveryModule = NULL;\r
//\r
Buffer = (VOID *)((UINT8 *) Buffer);\r
Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);\r
//\r
Buffer = (VOID *)((UINT8 *) Buffer);\r
Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);\r
- HobOld.Raw = Hob.Raw;\r
while (!END_OF_HOB_LIST (Hob)) {\r
if (Hob.Header->HobType == EFI_HOB_TYPE_FV) {\r
DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Hob FV Length: %x\n", Hob.FirmwareVolume->Length));\r
while (!END_OF_HOB_LIST (Hob)) {\r
if (Hob.Header->HobType == EFI_HOB_TYPE_FV) {\r
DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Hob FV Length: %x\n", Hob.FirmwareVolume->Length));\r
OUT UINTN *Size\r
)\r
{\r
OUT UINTN *Size\r
)\r
{\r
EFI_PEI_HOB_POINTERS Hob;\r
EFI_MEMORY_TYPE_INFORMATION *MemoryData;\r
UINT8 Index;\r
EFI_PEI_HOB_POINTERS Hob;\r
EFI_MEMORY_TYPE_INFORMATION *MemoryData;\r
UINT8 Index;\r
TempPageNum = 0;\r
Index = 0;\r
\r
TempPageNum = 0;\r
Index = 0;\r
\r
- Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);\r
+ PeiServicesGetHobList ((VOID **)&Hob.Raw);\r
while (!END_OF_HOB_LIST (Hob)) {\r
if (Hob.Header->HobType == EFI_HOB_TYPE_GUID_EXTENSION &&\r
CompareGuid (&Hob.Guid->Name, &gEfiMemoryTypeInformationGuid)\r
while (!END_OF_HOB_LIST (Hob)) {\r
if (Hob.Header->HobType == EFI_HOB_TYPE_GUID_EXTENSION &&\r
CompareGuid (&Hob.Guid->Name, &gEfiMemoryTypeInformationGuid)\r
PEI_MEMORY_RANGE_SMRAM SmramMask;\r
PEI_MEMORY_RANGE_SMRAM TsegMask;\r
UINT32 BlockNum;\r
PEI_MEMORY_RANGE_SMRAM SmramMask;\r
PEI_MEMORY_RANGE_SMRAM TsegMask;\r
UINT32 BlockNum;\r
- UINT8 EsmramcRegister;\r
UINT8 ExtendedMemoryIndex;\r
UINT32 Register;\r
\r
UINT8 ExtendedMemoryIndex;\r
UINT32 Register;\r
\r
//\r
// Generate Memory ranges for the memory map.\r
//\r
//\r
// Generate Memory ranges for the memory map.\r
//\r
MemorySize = 0;\r
\r
RowLength = TotalMemorySize;\r
MemorySize = 0;\r
\r
RowLength = TotalMemorySize;\r