diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2023-11-27 18:57:43 -0500 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-28 10:12:29 +0000 |
commit | d451bba399687b4102459db5a447fc9abb8fdee1 (patch) | |
tree | b21f9443a4540a31136ded7419f055b770955a76 /UefiCpuPkg/Library | |
parent | 0e9ce9146a6dc50a35488e3a4a7a2a4bbaf1eb1c (diff) | |
download | edk2-d451bba399687b4102459db5a447fc9abb8fdee1.zip edk2-d451bba399687b4102459db5a447fc9abb8fdee1.tar.gz edk2-d451bba399687b4102459db5a447fc9abb8fdee1.tar.bz2 |
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 <michael.kubacki@microsoft.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'UefiCpuPkg/Library')
0 files changed, 0 insertions, 0 deletions