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
UINT8 *DevicePathPkg;\r
UINT8 *DevicePath;\r
HII_DATABASE_RECORD *DataBaseRecord;\r
- UINTN DevicePathSize;\r
HII_DATABASE_PACKAGE_LIST_INSTANCE *PackageListNode;\r
HII_STRING_PACKAGE_INSTANCE *StringPackage;\r
CHAR8 *LocalNameSpace;\r
BOOLEAN ReadOnly;\r
\r
DataBaseRecord = NULL;\r
- DevicePathSize = 0;\r
Status = EFI_SUCCESS;\r
MultiKeywordResp = NULL;\r
DevicePath = NULL;\r
DataBaseRecord = CR (Link, HII_DATABASE_RECORD, DatabaseEntry, HII_DATABASE_RECORD_SIGNATURE);\r
if ((DevicePathPkg = DataBaseRecord->PackageList->DevicePathPkg) != NULL) {\r
DevicePath = DevicePathPkg + sizeof (EFI_HII_PACKAGE_HEADER);\r
- DevicePathSize = GetDevicePathSize ((EFI_DEVICE_PATH_PROTOCOL *) DevicePath);\r
}\r
PackageListNode = DataBaseRecord->PackageList;\r
\r