]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: Fix unaligned pointers usage
authorSami Mujawar <sami.mujawar@arm.com>
Tue, 9 Jul 2019 14:58:37 +0000 (15:58 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 29 Mar 2020 16:53:35 +0000 (16:53 +0000)
commitd39271f114f035bb0a6ccf404c64f9131a9e45d8
treed56fe7dc826a4d04952d6bf553e42e4da1904290
parent90e52483bf572fd6d15bdfa5e0904ed0aa8b4199
DynamicTablesPkg: Fix unaligned pointers usage

The VS2017 compiler reports 'warning C4366: The result of
the unary '&' operator may be unaligned' if an address of
an unaligned structure member is passed as an argument to
a function.

Fix this warning by using local variables in place of
unaligned structure members.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/PpttGenerator.c
DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/PpttGenerator.h