]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Conf/tools_def.template
BaseTools/tools_def CLANG38: Suppress unaligned access warning
authorArd Biesheuvel <ardb@kernel.org>
Thu, 5 Jan 2023 15:53:33 +0000 (16:53 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 17 Jan 2023 14:06:43 +0000 (14:06 +0000)
commita107ad0f623669c72997443dc0431eeb732f81a0
tree981a193e326a2c5dd2c3db6a637c8098b9c08649
parent021930d7c264da2c68b769a8dae4db06055047c2
BaseTools/tools_def CLANG38: Suppress unaligned access warning

Even though the presence of the 'packed' pragma should be a strong hint
that the misaligned placement of a GUID in a struct is intentional,
recent Clang versions will object nonetheless, and break the build due
to the presence of such GUIDs in the FPDT ACPI tables.

This is obviously not something we can fix in the code, so let's just
suppress the warning/error instead.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
BaseTools/Conf/tools_def.template