]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/ArmMmuLib: Explicitly cast function pointer argument
authorMichael Kubacki <michael.kubacki@microsoft.com>
Mon, 19 Oct 2020 22:12:23 +0000 (15:12 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 22 Oct 2020 14:48:12 +0000 (14:48 +0000)
commit264eccb5dfc345c2e004883f00e62959f818fafd
tree45857b466029c0193a099327b0b8d77ba016dcb1
parent2bdc90429a149af6c0e88506730123586b6e08ae
ArmPkg/ArmMmuLib: Explicitly cast function pointer argument

The function ArmReplaceLiveTranslationEntry () is passed as a VOID
pointer to WriteBackDataCacheRange (). This produces the following
warning on VS2019:

warning C4152: nonstandard extension, function/data pointer
conversion in expression

This change explicitly casts the argument to the formal parameter
type VOID*.

This can be reproduced with the following build command:
build -b DEBUG -a AARCH64 -t VS2019 -p ArmPkg/ArmPkg.dsc
-m ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuPeiLibConstructor.c