Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: d451bba399687b4102459db5a447fc9abb8fdee1
https://github.com/tianocore/edk2/commit/d451bba399687b4102459db5a447fc9abb8fdee1
Author: Michael Kubacki <[email protected]>
Date: 2023-11-28 (Tue, 28 Nov 2023)
Changed paths:
M ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c
M ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuPeiLibConstructor.c
M ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
A ArmPkg/Library/ArmMmuLib/ArmMmuLibInternal.h
M ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
Log Message:
-----------
ArmPkg/ArmMmuLib: Use function pointer type
mReplaceLiveEntryFunc is a function pointer but assigned as a VOID*
pointer:
mReplaceLiveEntryFunc = *(VOID **)GET_GUID_HOB_DATA (Hob);
This leads to the Visual Studio warning:
nonstandard extension, function/data pointer conversion in
expression
This change updates the assignment to avoid using a data pointer and
defines a type for the function pointer to succinctly and accurately
refer to the type when it is used in the library code.
Signed-off-by: Michael Kubacki <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits