]> git.proxmox.com Git - mirror_edk2.git/commitdiff
QuarkPlatformPkg: Fix build errors
authorLee Leahy <leroy.p.leahy@intel.com>
Wed, 11 May 2016 23:07:55 +0000 (16:07 -0700)
committerMichael Kinney <michael.d.kinney@intel.com>
Fri, 13 May 2016 18:34:26 +0000 (11:34 -0700)
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>
QuarkPlatformPkg/Acpi/Dxe/AcpiPlatform/AcpiPciUpdate.c
QuarkPlatformPkg/Acpi/Dxe/AcpiPlatform/AcpiPlatform.c
QuarkPlatformPkg/Platform/Dxe/SmbiosMiscDxe/MiscNumberOfInstallableLanguagesFunction.c
QuarkPlatformPkg/Platform/Dxe/SmbiosMiscDxe/MiscOemStringFunction.c
QuarkPlatformPkg/Platform/Dxe/SmbiosMiscDxe/MiscSystemOptionStringFunction.c
QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c
QuarkPlatformPkg/Platform/Pei/PlatformInit/MrcWrapper.c

index b0f0b44085dd4848e0df05bf1def902ab607aefc..96af0460f8ce05e3aa83f19fa3601f8e0457bd8e 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -261,9 +261,7 @@ SdtGetNameStringSize (
 {\r
   UINTN                 SegCount;\r
   UINTN                 Length;\r
 {\r
   UINTN                 SegCount;\r
   UINTN                 Length;\r
-  UINT8                 *Name;\r
 \r
 \r
-  Name = Buffer;\r
   Length = 0;\r
 \r
   //\r
   Length = 0;\r
 \r
   //\r
index aa18cae29a3b80bc85f48ef9d62d4430bda7e8e9..309eb041ee92ce8d6638bf03f5886b04a0d18841 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -255,7 +255,6 @@ ApicTableUpdate (
   UINT8                      CurrProcessor;\r
   UINTN                      NumberOfCPUs;\r
   UINTN                      NumberOfEnabledCPUs;\r
   UINT8                      CurrProcessor;\r
   UINTN                      NumberOfCPUs;\r
   UINTN                      NumberOfEnabledCPUs;\r
-  UINTN                      BufferSize;\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
@@ -298,7 +297,6 @@ ApicTableUpdate (
     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
@@ -562,7 +560,6 @@ AcpiPlatformEntryPoint (
   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
@@ -577,7 +574,6 @@ AcpiPlatformEntryPoint (
   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
index d17f5ea3567f1fe2f9f9a1809f17653c5d7125fe..322d7ceda325d7c0895dafa18f1797e858a6d2e1 100644 (file)
@@ -2,7 +2,7 @@
 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
@@ -190,7 +190,6 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages)
   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
-  BOOLEAN                                   LangMatch;\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
@@ -210,9 +209,8 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages)
   //\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
-  LangMatch = FALSE;\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
index e352000104ba5e8afd410dd77c9a97249dc63ca1..f5b21621972bddb409d1fb13b774580745db30ad 100644 (file)
@@ -2,7 +2,7 @@
 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
@@ -38,9 +38,6 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscOemString)
   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
index 44cc684d649bfe3044f605f62d3e16e3bddd0a92..f12a2e4ca7e005056fb3f4a559e559ebdfafa37b 100644 (file)
@@ -2,7 +2,7 @@
 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
@@ -40,9 +40,6 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemOptionString)
   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
index ea67ba9d63aab939f9cdcdfb850446ca4fb4e8d0..fd7a937dd5b1dd68b8e110dee83fb3d05005abf3 100644 (file)
@@ -2,7 +2,7 @@
 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
@@ -137,26 +137,21 @@ Returns:
   UINTN                                 NumberRecoveryCapsules;\r
   UINTN                                 RecoveryCapsuleSize;\r
   EFI_GUID                              DeviceId;\r
   UINTN                                 NumberRecoveryCapsules;\r
   UINTN                                 RecoveryCapsuleSize;\r
   EFI_GUID                              DeviceId;\r
-  BOOLEAN                               ImageFound;\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
-  ImageFound              = FALSE;\r
   NumberOfImageProviders  = 0;\r
 \r
   DeviceRecoveryModule    = NULL;\r
   NumberOfImageProviders  = 0;\r
 \r
   DeviceRecoveryModule    = NULL;\r
@@ -284,7 +279,6 @@ Returns:
     //\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
index 70c9cf98a0b976606a09d15e71c01b13e95134b2..df6c1cc23240cff55c61ec3ba72833b7487baf94 100644 (file)
@@ -1089,7 +1089,6 @@ RetriveRequiredMemorySize (
   OUT     UINTN                             *Size\r
   )\r
 {\r
   OUT     UINTN                             *Size\r
   )\r
 {\r
-  EFI_STATUS                     Status;\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
@@ -1099,7 +1098,7 @@ RetriveRequiredMemorySize (
   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
@@ -1171,7 +1170,6 @@ GetMemoryMap (
   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
@@ -1194,7 +1192,6 @@ GetMemoryMap (
   //\r
   // Generate Memory ranges for the memory map.\r
   //\r
   //\r
   // Generate Memory ranges for the memory map.\r
   //\r
-  EsmramcRegister = 0;\r
   MemorySize = 0;\r
 \r
   RowLength = TotalMemorySize;\r
   MemorySize = 0;\r
 \r
   RowLength = TotalMemorySize;\r