summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNhi Pham <nhi@os.amperecomputing.com>2023-08-16 11:19:07 +0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-08-29 03:23:14 +0000
commita107fcb618934ae18f29660ecf066f3c49dd875f (patch)
treeef3ef7df5447465e1aa1cfa56097ab4e7ffe8997
parentb1e558f6369fc85ae053e0c16ffcd600880fe78d (diff)
downloadedk2-a107fcb618934ae18f29660ecf066f3c49dd875f.tar.gz
edk2-a107fcb618934ae18f29660ecf066f3c49dd875f.tar.bz2
edk2-a107fcb618934ae18f29660ecf066f3c49dd875f.zip
RedfishPkg/RedfishPlatformConfigDxe: Fix unused variable
This fixes an unused variable 'Index' error in release build. Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com> Reviewed-by: Abner Chang <abner.chang@amd.com>
-rw-r--r--RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c3
1 files changed, 2 insertions, 1 deletions
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) {