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>
This commit is contained in:
committed by
mergify[bot]
parent
90e52483bf
commit
d39271f114
@@ -167,6 +167,12 @@ typedef struct AcpiPpttGenerator {
|
||||
ACPI_TABLE_GENERATOR Header;
|
||||
/// PPTT structure count
|
||||
UINT32 ProcTopologyStructCount;
|
||||
/// Count of Processor Hierarchy Nodes
|
||||
UINT32 ProcHierarchyNodeCount;
|
||||
/// Count of Cache Structures
|
||||
UINT32 CacheStructCount;
|
||||
/// Count of Id Structures
|
||||
UINT32 IdStructCount;
|
||||
/// List of indexed CM objects for PPTT generation
|
||||
PPTT_NODE_INDEXER * NodeIndexer;
|
||||
/// Pointer to the start of Processor Hierarchy nodes in
|
||||
@@ -176,13 +182,6 @@ typedef struct AcpiPpttGenerator {
|
||||
PPTT_NODE_INDEXER * CacheStructIndexedList;
|
||||
/// Pointer to the start of Id Structures in the Node Indexer array
|
||||
PPTT_NODE_INDEXER * IdStructIndexedList;
|
||||
/// Count of Processor Hierarchy Nodes
|
||||
UINT32 ProcHierarchyNodeCount;
|
||||
/// Count of Cache Structures
|
||||
UINT32 CacheStructCount;
|
||||
/// Count of Id Structures
|
||||
UINT32 IdStructCount;
|
||||
|
||||
} ACPI_PPTT_GENERATOR;
|
||||
|
||||
#pragma pack()
|
||||
|
Reference in New Issue
Block a user