[edk2-devel] [PATCH 1/1] RedfishPkg/RedfishPlatformConfigDxe: Fix unused variable

Chang, Abner via groups.io abner.chang=amd.com at groups.io
Wed Aug 16 05:02:03 UTC 2023


[AMD Official Use Only - General]

Reviewed-by: Abner Chang <abner.chang at amd.com>

> -----Original Message-----
> From: Nhi Pham <nhi at os.amperecomputing.com>
> Sent: Wednesday, August 16, 2023 12:31 PM
> To: devel at edk2.groups.io
> Cc: Nhi Pham <nhi at os.amperecomputing.com>; Nickle Wang
> <nicklew at nvidia.com>; Chang, Abner <Abner.Chang at amd.com>; Igor
> Kulchytskyy <igork at ami.com>; Nick Ramirez <nramirez at nvidia.com>
> Subject: [PATCH 1/1] RedfishPkg/RedfishPlatformConfigDxe: Fix unused
> variable
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> This fixes an unused variable 'Index' error in release build.
>
> Cc: Nickle Wang <nicklew at nvidia.com>
> Cc: Abner Chang <abner.chang at amd.com>
> Cc: Igor Kulchytskyy <igork at ami.com>
> Cc: Nick Ramirez <nramirez at nvidia.com>
> Signed-off-by: Nhi Pham <nhi at os.amperecomputing.com>
> ---
>
> PR: https://github.com/tianocore/edk2/pull/4742
>
>  RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git
> a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c
> b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c
> index e4a905aec44e..47d35abc0885 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) {
> --
> 2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107787): https://edk2.groups.io/g/devel/message/107787
Mute This Topic: https://groups.io/mt/100773733/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list