Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 654dc3ed852aafa126e9d539b7002db348dd6eb0
https://github.com/tianocore/edk2/commit/654dc3ed852aafa126e9d539b7002db348dd6eb0
Author: Pierre Gondois <[email protected]>
Date: 2020-06-27 (Sat, 27 Jun 2020)
Changed paths:
M ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c
Log Message:
-----------
ArmPkg/ArmMmuLib: Fix implicit cast
While building with the following command line:
build -b DEBUG -a AARCH64 -t VS2017 -p MdeModulePkg\MdeModulePkg.dsc
A missing cast triggers the following warning, then triggering an error:
ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c(652):
warning C4152: nonstandard extension, function/data pointer
conversion in expression
This patch first casts the function pointer to (UINTN), then to (VOID *),
followowing the C99 standard s6.3.2.3 "Pointer", paragraphs 5 and 6.
This suppresses the warning.
Signed-off-by: Pierre Gondois <[email protected]>
Suggested-by: Laszlo Ersek <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits