Add GCC flag "-Wno-unused-but-set-variable" to remove build error because ConverterLib is 3rd party library.
Signed-off-by: Nickle Wang <nick...@nvidia.com> Cc: Abner Chang <abner.ch...@amd.com> Cc: Igor Kulchytskyy <ig...@ami.com> --- .../edk2library/Bios/v1_0_9/Lib.inf | 102 +++++++++--------- .../edk2library/ComputerSystem/v1_5_0/Lib.inf | 102 +++++++++--------- .../ComputerSystemCollection/Lib.inf | 102 +++++++++--------- .../edk2library/Memory/v1_7_1/Lib.inf | 102 +++++++++--------- .../edk2library/MemoryCollection/Lib.inf | 102 +++++++++--------- 5 files changed, 255 insertions(+), 255 deletions(-) diff --git a/RedfishClientPkg/ConverterLib/edk2library/Bios/v1_0_9/Lib.inf b/RedfishClientPkg/ConverterLib/edk2library/Bios/v1_0_9/Lib.inf index e2740488..e5b73dab 100644 --- a/RedfishClientPkg/ConverterLib/edk2library/Bios/v1_0_9/Lib.inf +++ b/RedfishClientPkg/ConverterLib/edk2library/Bios/v1_0_9/Lib.inf @@ -1,51 +1,51 @@ -# -# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> -# SPDX-License-Identifier: BSD-2-Clause-Patent -# -# Auto-generated file by Redfish Schema C Structure Generator. -# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. -# Copyright Notice: -# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. -# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md -# -[Defines] -INF_VERSION = 0x00010006 -BASE_NAME = BiosV1_0_9Lib -FILE_GUID = 46BBD6C8-5077-44D6-B535-109AB834F4E3 -MODULE_TYPE = BASE -VERSION_STRING = 1.0 -LIBRARY_CLASS = BiosV1_0_9Lib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 -# - -[Sources] - ../../../include/RedfishDataTypeDef.h - ../../../src/RedfishCsCommon.c - ../../../src/RedfishCsMemory.c - ../../../src/Bios/Bios.V1_0_9/Bios.V1_0_9.c - - -[Packages] - MdePkg/MdePkg.dec - RedfishPkg/RedfishPkg.dec - RedfishClientPkg/RedfishClientPkg.dec - -[LibraryClasses] - BaseLib - BaseMemoryLib - DebugLib - MemoryAllocationLib - JsonLib - -[BuildOptions] - # - # Disables the following Visual Studio compiler warnings - # so we do not break the build with /WX option: - # C4706: assignment within conditional expression - # - MSFT:*_*_*_CC_FLAGS = /wd4706 - - +# +# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# Auto-generated file by Redfish Schema C Structure Generator. +# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. +# Copyright Notice: +# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. +# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md +# +[Defines] +INF_VERSION = 0x00010006 +BASE_NAME = BiosV1_0_9Lib +FILE_GUID = 46BBD6C8-5077-44D6-B535-109AB834F4E3 +MODULE_TYPE = BASE +VERSION_STRING = 1.0 +LIBRARY_CLASS = BiosV1_0_9Lib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 +# + +[Sources] + ../../../include/RedfishDataTypeDef.h + ../../../src/RedfishCsCommon.c + ../../../src/RedfishCsMemory.c + ../../../src/Bios/Bios.V1_0_9/Bios.V1_0_9.c + + +[Packages] + MdePkg/MdePkg.dec + RedfishPkg/RedfishPkg.dec + RedfishClientPkg/RedfishClientPkg.dec + +[LibraryClasses] + BaseLib + BaseMemoryLib + DebugLib + MemoryAllocationLib + JsonLib + +[BuildOptions] + # + # Disables the following Visual Studio compiler warnings + # so we do not break the build with /WX option: + # C4706: assignment within conditional expression + # + MSFT:*_*_*_CC_FLAGS = /wd4706 + GCC:*_*_*_CC_FLAGS = -Wno-unused-but-set-variable diff --git a/RedfishClientPkg/ConverterLib/edk2library/ComputerSystem/v1_5_0/Lib.inf b/RedfishClientPkg/ConverterLib/edk2library/ComputerSystem/v1_5_0/Lib.inf index 09192f67..1f37166f 100644 --- a/RedfishClientPkg/ConverterLib/edk2library/ComputerSystem/v1_5_0/Lib.inf +++ b/RedfishClientPkg/ConverterLib/edk2library/ComputerSystem/v1_5_0/Lib.inf @@ -1,51 +1,51 @@ -# -# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> -# SPDX-License-Identifier: BSD-2-Clause-Patent -# -# Auto-generated file by Redfish Schema C Structure Generator. -# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. -# Copyright Notice: -# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. -# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md -# -[Defines] -INF_VERSION = 0x00010006 -BASE_NAME = ComputerSystemV1_5_0Lib -FILE_GUID = D9F1B61D-980B-4B9B-B822-32AAC60171DB -MODULE_TYPE = BASE -VERSION_STRING = 1.0 -LIBRARY_CLASS = ComputerSystemV1_5_0Lib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 -# - -[Sources] - ../../../include/RedfishDataTypeDef.h - ../../../src/RedfishCsCommon.c - ../../../src/RedfishCsMemory.c - ../../../src/ComputerSystem/ComputerSystem.V1_5_0/ComputerSystem.V1_5_0.c - - -[Packages] - MdePkg/MdePkg.dec - RedfishPkg/RedfishPkg.dec - RedfishClientPkg/RedfishClientPkg.dec - -[LibraryClasses] - BaseLib - BaseMemoryLib - DebugLib - MemoryAllocationLib - JsonLib - -[BuildOptions] - # - # Disables the following Visual Studio compiler warnings - # so we do not break the build with /WX option: - # C4706: assignment within conditional expression - # - MSFT:*_*_*_CC_FLAGS = /wd4706 - - +# +# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# Auto-generated file by Redfish Schema C Structure Generator. +# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. +# Copyright Notice: +# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. +# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md +# +[Defines] +INF_VERSION = 0x00010006 +BASE_NAME = ComputerSystemV1_5_0Lib +FILE_GUID = D9F1B61D-980B-4B9B-B822-32AAC60171DB +MODULE_TYPE = BASE +VERSION_STRING = 1.0 +LIBRARY_CLASS = ComputerSystemV1_5_0Lib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 +# + +[Sources] + ../../../include/RedfishDataTypeDef.h + ../../../src/RedfishCsCommon.c + ../../../src/RedfishCsMemory.c + ../../../src/ComputerSystem/ComputerSystem.V1_5_0/ComputerSystem.V1_5_0.c + + +[Packages] + MdePkg/MdePkg.dec + RedfishPkg/RedfishPkg.dec + RedfishClientPkg/RedfishClientPkg.dec + +[LibraryClasses] + BaseLib + BaseMemoryLib + DebugLib + MemoryAllocationLib + JsonLib + +[BuildOptions] + # + # Disables the following Visual Studio compiler warnings + # so we do not break the build with /WX option: + # C4706: assignment within conditional expression + # + MSFT:*_*_*_CC_FLAGS = /wd4706 + GCC:*_*_*_CC_FLAGS = -Wno-unused-but-set-variable diff --git a/RedfishClientPkg/ConverterLib/edk2library/ComputerSystemCollection/Lib.inf b/RedfishClientPkg/ConverterLib/edk2library/ComputerSystemCollection/Lib.inf index c3eb2943..569ae119 100644 --- a/RedfishClientPkg/ConverterLib/edk2library/ComputerSystemCollection/Lib.inf +++ b/RedfishClientPkg/ConverterLib/edk2library/ComputerSystemCollection/Lib.inf @@ -1,51 +1,51 @@ -# -# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> -# SPDX-License-Identifier: BSD-2-Clause-Patent -# -# Auto-generated file by Redfish Schema C Structure Generator. -# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. -# Copyright Notice: -# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. -# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md -# -[Defines] -INF_VERSION = 0x00010006 -BASE_NAME = ComputerSystemCollectionLib -FILE_GUID = 2610E57D-8AA0-4DAC-8C2A-A5E3A6BFB672 -MODULE_TYPE = BASE -VERSION_STRING = 1.0 -LIBRARY_CLASS = ComputerSystemCollectionLib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 -# - -[Sources] - ../../include/RedfishDataTypeDef.h - ../../src/RedfishCsCommon.c - ../../src/RedfishCsMemory.c - ../../src/ComputerSystemCollection/ComputerSystemCollection/ComputerSystemCollection.c - - -[Packages] - MdePkg/MdePkg.dec - RedfishPkg/RedfishPkg.dec - RedfishClientPkg/RedfishClientPkg.dec - -[LibraryClasses] - BaseLib - BaseMemoryLib - DebugLib - MemoryAllocationLib - JsonLib - -[BuildOptions] - # - # Disables the following Visual Studio compiler warnings - # so we do not break the build with /WX option: - # C4706: assignment within conditional expression - # - MSFT:*_*_*_CC_FLAGS = /wd4706 - - +# +# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# Auto-generated file by Redfish Schema C Structure Generator. +# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. +# Copyright Notice: +# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. +# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md +# +[Defines] +INF_VERSION = 0x00010006 +BASE_NAME = ComputerSystemCollectionLib +FILE_GUID = 2610E57D-8AA0-4DAC-8C2A-A5E3A6BFB672 +MODULE_TYPE = BASE +VERSION_STRING = 1.0 +LIBRARY_CLASS = ComputerSystemCollectionLib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 +# + +[Sources] + ../../include/RedfishDataTypeDef.h + ../../src/RedfishCsCommon.c + ../../src/RedfishCsMemory.c + ../../src/ComputerSystemCollection/ComputerSystemCollection/ComputerSystemCollection.c + + +[Packages] + MdePkg/MdePkg.dec + RedfishPkg/RedfishPkg.dec + RedfishClientPkg/RedfishClientPkg.dec + +[LibraryClasses] + BaseLib + BaseMemoryLib + DebugLib + MemoryAllocationLib + JsonLib + +[BuildOptions] + # + # Disables the following Visual Studio compiler warnings + # so we do not break the build with /WX option: + # C4706: assignment within conditional expression + # + MSFT:*_*_*_CC_FLAGS = /wd4706 + GCC:*_*_*_CC_FLAGS = -Wno-unused-but-set-variable diff --git a/RedfishClientPkg/ConverterLib/edk2library/Memory/v1_7_1/Lib.inf b/RedfishClientPkg/ConverterLib/edk2library/Memory/v1_7_1/Lib.inf index 0716a9c2..e9378b9c 100644 --- a/RedfishClientPkg/ConverterLib/edk2library/Memory/v1_7_1/Lib.inf +++ b/RedfishClientPkg/ConverterLib/edk2library/Memory/v1_7_1/Lib.inf @@ -1,51 +1,51 @@ -# -# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> -# SPDX-License-Identifier: BSD-2-Clause-Patent -# -# Auto-generated file by Redfish Schema C Structure Generator. -# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. -# Copyright Notice: -# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. -# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md -# -[Defines] -INF_VERSION = 0x00010006 -BASE_NAME = MemoryV1_7_1Lib -FILE_GUID = CC4329FF-92F6-4F42-92A6-E3C70A6B2CA1 -MODULE_TYPE = BASE -VERSION_STRING = 1.0 -LIBRARY_CLASS = MemoryV1_7_1Lib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 -# - -[Sources] - ../../../include/RedfishDataTypeDef.h - ../../../src/RedfishCsCommon.c - ../../../src/RedfishCsMemory.c - ../../../src/Memory/Memory.V1_7_1/Memory.V1_7_1.c - - -[Packages] - MdePkg/MdePkg.dec - RedfishPkg/RedfishPkg.dec - RedfishClientPkg/RedfishClientPkg.dec - -[LibraryClasses] - BaseLib - BaseMemoryLib - DebugLib - MemoryAllocationLib - JsonLib - -[BuildOptions] - # - # Disables the following Visual Studio compiler warnings - # so we do not break the build with /WX option: - # C4706: assignment within conditional expression - # - MSFT:*_*_*_CC_FLAGS = /wd4706 - - +# +# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# Auto-generated file by Redfish Schema C Structure Generator. +# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. +# Copyright Notice: +# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. +# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md +# +[Defines] +INF_VERSION = 0x00010006 +BASE_NAME = MemoryV1_7_1Lib +FILE_GUID = CC4329FF-92F6-4F42-92A6-E3C70A6B2CA1 +MODULE_TYPE = BASE +VERSION_STRING = 1.0 +LIBRARY_CLASS = MemoryV1_7_1Lib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 +# + +[Sources] + ../../../include/RedfishDataTypeDef.h + ../../../src/RedfishCsCommon.c + ../../../src/RedfishCsMemory.c + ../../../src/Memory/Memory.V1_7_1/Memory.V1_7_1.c + + +[Packages] + MdePkg/MdePkg.dec + RedfishPkg/RedfishPkg.dec + RedfishClientPkg/RedfishClientPkg.dec + +[LibraryClasses] + BaseLib + BaseMemoryLib + DebugLib + MemoryAllocationLib + JsonLib + +[BuildOptions] + # + # Disables the following Visual Studio compiler warnings + # so we do not break the build with /WX option: + # C4706: assignment within conditional expression + # + MSFT:*_*_*_CC_FLAGS = /wd4706 + GCC:*_*_*_CC_FLAGS = -Wno-unused-but-set-variable diff --git a/RedfishClientPkg/ConverterLib/edk2library/MemoryCollection/Lib.inf b/RedfishClientPkg/ConverterLib/edk2library/MemoryCollection/Lib.inf index 42a06c7e..1eab40e3 100644 --- a/RedfishClientPkg/ConverterLib/edk2library/MemoryCollection/Lib.inf +++ b/RedfishClientPkg/ConverterLib/edk2library/MemoryCollection/Lib.inf @@ -1,51 +1,51 @@ -# -# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> -# SPDX-License-Identifier: BSD-2-Clause-Patent -# -# Auto-generated file by Redfish Schema C Structure Generator. -# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. -# Copyright Notice: -# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. -# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md -# -[Defines] -INF_VERSION = 0x00010006 -BASE_NAME = MemoryCollectionLib -FILE_GUID = ABABF5F4-A0F6-4454-B83F-E349E4667DF8 -MODULE_TYPE = BASE -VERSION_STRING = 1.0 -LIBRARY_CLASS = MemoryCollectionLib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 -# - -[Sources] - ../../include/RedfishDataTypeDef.h - ../../src/RedfishCsCommon.c - ../../src/RedfishCsMemory.c - ../../src/MemoryCollection/MemoryCollection/MemoryCollection.c - - -[Packages] - MdePkg/MdePkg.dec - RedfishPkg/RedfishPkg.dec - RedfishClientPkg/RedfishClientPkg.dec - -[LibraryClasses] - BaseLib - BaseMemoryLib - DebugLib - MemoryAllocationLib - JsonLib - -[BuildOptions] - # - # Disables the following Visual Studio compiler warnings - # so we do not break the build with /WX option: - # C4706: assignment within conditional expression - # - MSFT:*_*_*_CC_FLAGS = /wd4706 - - +# +# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP<BR> +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# Auto-generated file by Redfish Schema C Structure Generator. +# https://github.com/DMTF/Redfish-Schema-C-Struct-Generator. +# Copyright Notice: +# Copyright 2019-2021 Distributed Management Task Force, Inc. All rights reserved. +# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-JSON-C-Struct-Converter/blob/master/LICENSE.md +# +[Defines] +INF_VERSION = 0x00010006 +BASE_NAME = MemoryCollectionLib +FILE_GUID = ABABF5F4-A0F6-4454-B83F-E349E4667DF8 +MODULE_TYPE = BASE +VERSION_STRING = 1.0 +LIBRARY_CLASS = MemoryCollectionLib | DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC RISCV64 +# + +[Sources] + ../../include/RedfishDataTypeDef.h + ../../src/RedfishCsCommon.c + ../../src/RedfishCsMemory.c + ../../src/MemoryCollection/MemoryCollection/MemoryCollection.c + + +[Packages] + MdePkg/MdePkg.dec + RedfishPkg/RedfishPkg.dec + RedfishClientPkg/RedfishClientPkg.dec + +[LibraryClasses] + BaseLib + BaseMemoryLib + DebugLib + MemoryAllocationLib + JsonLib + +[BuildOptions] + # + # Disables the following Visual Studio compiler warnings + # so we do not break the build with /WX option: + # C4706: assignment within conditional expression + # + MSFT:*_*_*_CC_FLAGS = /wd4706 + GCC:*_*_*_CC_FLAGS = -Wno-unused-but-set-variable -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#105787): https://edk2.groups.io/g/devel/message/105787 Mute This Topic: https://groups.io/mt/99362097/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-