edk2/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers
Ard Biesheuvel 3bc03ff552 ShellPkg/AcpiView: Fix unused variable warnings in RimtParser
Clang complains about unused variables:

ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rimt/RimtParser.c:21:60: error: variable 'mRimtNodeHeader' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
   21 | STATIC EFI_ACPI_6_6_RIMT_NODE_HEADER_STRUCTURE             mRimtNodeHeader;
      |                                                            ^~~~~~~~~~~~~~~
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rimt/RimtParser.c:25:60: error: variable 'mRimtIdMappingNode' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
   25 | STATIC EFI_ACPI_6_6_RIMT_ID_MAPPING_STRUCTURE              mRimtIdMappingNode;
      |                                                            ^~~~~~~~~~~~~~~~~~
   28 | STATIC EFI_ACPI_6_6_RIMT_PCIE_ROOT_COMPLEX_NODE_STRUCTURE  mRimtPcieRootComplexNode;
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rimt/RimtParser.c:29:60: error: variable 'mRimtIommuNode' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
   29 | STATIC EFI_ACPI_6_6_RIMT_IOMMU_NODE_STRUCTURE              mRimtIommuNode;
      |                                                            ^~~~~~~~~~~~~~
4 errors generated.

This is because these variables are only used to take the size of their
fields using the sizeof() operator, which does not support type names
directly.

So create a helper macro SIZE_OF_T () that provides the functionality we
need, and drop the unused variables.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2025-12-04 08:43:02 +00:00
..
Aest ShellPkg/AcpiView: Update print-formatter prototype 2024-08-01 17:20:10 +00:00
Agdi ShellPkg: add support for AGDI table in acpiview 2025-09-29 10:44:12 +00:00
Apmt ShellPkg/AcpiView: APMT Parser 2022-12-13 16:50:27 +00:00
Bgrt ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dbg2 ShellPkg/AcpiView: Update field-validator prototype 2024-08-01 17:20:10 +00:00
Dsdt ShellPkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Einj ShellPkg/AcpiView: Update print-formatter prototype 2024-08-01 17:20:10 +00:00
Erst ShellPkg/AcpiView: Update print-formatter prototype 2024-08-01 17:20:10 +00:00
Facs ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Fadt ShellPkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Gtdt ShellPkg/AcpiView: Update field-validator prototype 2024-08-01 17:20:10 +00:00
Hest ShellPkg/AcpiView: Update print-formatter prototype 2024-08-01 17:20:10 +00:00
Hmat ShellPkg/AcpiView: Update print-formatter prototype 2024-08-01 17:20:10 +00:00
Hpet ShellPkg/AcpiView: Update print-formatter prototype 2024-08-01 17:20:10 +00:00
Iort ShellPkg/AcpiView: Update field-validator prototype 2024-08-01 17:20:10 +00:00
Madt ShellPkg: Acpiview: Add GICC field parsing 2024-09-05 07:43:01 +00:00
Mcfg ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Mpam ShellPkg/AcpiView: Add MPAM Parser 2024-08-01 17:20:10 +00:00
Pcct ShellPkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Pptt ShellPkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Ras2 ShellPkg/AcpiView: RAS2 Parser - check validity of PCC Count 2024-12-17 02:43:05 +00:00
Rasf ShellPkg/AcpiView: RASF Parser 2024-10-04 17:48:11 +00:00
Rimt ShellPkg/AcpiView: Fix unused variable warnings in RimtParser 2025-12-04 08:43:02 +00:00
Rsdp ShellPkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Slit ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Spcr ShellPkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Srat ShellPkg/AcpiView: Update print-formatter prototype 2024-08-01 17:20:10 +00:00
Ssdt ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2 ShellPkg: AcpiView: TPM2 parser for Arm FF-A 2025-01-09 12:41:19 +08:00
Wsmt ShellPkg/AcpiView: Update print-formatter prototype 2024-08-01 17:20:10 +00:00
Xsdt ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00