audk/ArmPkg/Library/ArmMmuLib
Pierre Gondois 654dc3ed85 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 <pierre.gondois@arm.com>
Suggested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
2020-06-27 09:00:57 +00:00
..
AArch64 ArmPkg/ArmMmuLib: Fix implicit cast 2020-06-27 09:00:57 +00:00
Arm ArmPkg/ArmMmuLib ARM: drop memory type check for page tables 2020-03-05 21:08:30 +00:00
ArmMmuBaseLib.inf ArmPkg/ArmMmuLib ARM: split ArmMmuLibCore.c into core and update code 2020-03-05 21:08:30 +00:00
ArmMmuPeiLib.inf ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00