mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: remove unused variable DevicePathSize
Remove the unused DevicePathSize variable from EnumerateAllKeywords(). Due to our use of -Werror=unused-but-set-variable when building under GCC, the presence of DevicePathSize is breaking the build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17448 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4024c116f6
commit
e44c60aa2a
|
@ -2565,7 +2565,6 @@ EnumerateAllKeywords (
|
||||||
UINT8 *DevicePathPkg;
|
UINT8 *DevicePathPkg;
|
||||||
UINT8 *DevicePath;
|
UINT8 *DevicePath;
|
||||||
HII_DATABASE_RECORD *DataBaseRecord;
|
HII_DATABASE_RECORD *DataBaseRecord;
|
||||||
UINTN DevicePathSize;
|
|
||||||
HII_DATABASE_PACKAGE_LIST_INSTANCE *PackageListNode;
|
HII_DATABASE_PACKAGE_LIST_INSTANCE *PackageListNode;
|
||||||
HII_STRING_PACKAGE_INSTANCE *StringPackage;
|
HII_STRING_PACKAGE_INSTANCE *StringPackage;
|
||||||
CHAR8 *LocalNameSpace;
|
CHAR8 *LocalNameSpace;
|
||||||
|
@ -2580,7 +2579,6 @@ EnumerateAllKeywords (
|
||||||
BOOLEAN ReadOnly;
|
BOOLEAN ReadOnly;
|
||||||
|
|
||||||
DataBaseRecord = NULL;
|
DataBaseRecord = NULL;
|
||||||
DevicePathSize = 0;
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
MultiKeywordResp = NULL;
|
MultiKeywordResp = NULL;
|
||||||
DevicePath = NULL;
|
DevicePath = NULL;
|
||||||
|
@ -2600,7 +2598,6 @@ EnumerateAllKeywords (
|
||||||
DataBaseRecord = CR (Link, HII_DATABASE_RECORD, DatabaseEntry, HII_DATABASE_RECORD_SIGNATURE);
|
DataBaseRecord = CR (Link, HII_DATABASE_RECORD, DatabaseEntry, HII_DATABASE_RECORD_SIGNATURE);
|
||||||
if ((DevicePathPkg = DataBaseRecord->PackageList->DevicePathPkg) != NULL) {
|
if ((DevicePathPkg = DataBaseRecord->PackageList->DevicePathPkg) != NULL) {
|
||||||
DevicePath = DevicePathPkg + sizeof (EFI_HII_PACKAGE_HEADER);
|
DevicePath = DevicePathPkg + sizeof (EFI_HII_PACKAGE_HEADER);
|
||||||
DevicePathSize = GetDevicePathSize ((EFI_DEVICE_PATH_PROTOCOL *) DevicePath);
|
|
||||||
}
|
}
|
||||||
PackageListNode = DataBaseRecord->PackageList;
|
PackageListNode = DataBaseRecord->PackageList;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue