Re: [edk2-devel] [PATCH v1 09/19] DynamicTablesPkg: Fix unaligned pointers usage

2019-08-23 Thread Alexei Fedorov
Reviewed-by: Alexei Fedorov Alexei From: Sami Mujawar Sent: 23 August 2019 11:55 To: devel@edk2.groups.io Cc: Sami Mujawar ; Alexei Fedorov ; leif.lindh...@linaro.org ; Matteo Carlini ; nd Subject: [PATCH v1 09/19] DynamicTablesPkg: Fix unaligned pointers

[edk2-devel] [PATCH v1 09/19] DynamicTablesPkg: Fix unaligned pointers usage

2019-08-23 Thread Sami Mujawar
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