From a107fcb618934ae18f29660ecf066f3c49dd875f Mon Sep 17 00:00:00 2001 From: Nhi Pham Date: Wed, 16 Aug 2023 11:19:07 +0700 Subject: [PATCH] RedfishPkg/RedfishPlatformConfigDxe: Fix unused variable This fixes an unused variable 'Index' error in release build. Signed-off-by: Nhi Pham Reviewed-by: Abner Chang --- .../RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c index e4a905aec4..47d35abc08 100644 --- a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c +++ b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c @@ -671,7 +671,8 @@ GetStatementPrivateByConfigureLang ( DEBUG_CODE ( STATIC UINTN Index = 0; - DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "%a: [%d] search %s in QID: 0x%x form: 0x%x formset: %g\n", __func__, ++Index, ConfigureLang, HiiStatementPrivate->QuestionId, HiiFormPrivate->Id, &HiiFormsetPrivate->Guid)); + Index++; + DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "%a: [%d] search %s in QID: 0x%x form: 0x%x formset: %g\n", __func__, Index, ConfigureLang, HiiStatementPrivate->QuestionId, HiiFormPrivate->Id, &HiiFormsetPrivate->Guid)); ); if (HiiStatementPrivate->Description != 0) {