audk/ArmPlatformPkg/Drivers/NorFlashDxe
Ard Biesheuvel 60d9f5f43b ArmPlatformPkg/NorFlashDxe: eliminate void pointer arithmetic
While most compilers happily allow arithmetic on void pointer,
the RVCT compiler does not, and throws the following warning for
NorFlashDxe:

  ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c(894,48) :
  error  #1254-D: arithmetic on pointer to void or function type

Since the expression in question involves a cast from UINTN to VOID*,
simply add some parentheses to eliminate this warning.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2016-10-24 17:23:44 +01:00
..
NorFlashBlockIoDxe.c ArmPlatformPkg/NorFlashDxe: Make the driver more compliant with the UEFI specification 2013-04-14 09:25:34 +00:00
NorFlashDxe.c ArmPlatformPkg/NorFlashDxe: eliminate void pointer arithmetic 2016-10-24 17:23:44 +01:00
NorFlashDxe.h ArmPlatformPkg/NorFlashDxe: accept both non-secure and secure varstore GUIDs 2016-06-22 16:52:40 +02:00
NorFlashDxe.inf ArmPlatformPkg/NorFlashDxe: accept both non-secure and secure varstore GUIDs 2016-06-22 16:52:40 +02:00
NorFlashFvbDxe.c ArmPlatformPkg/NorFlashDxe: accept both non-secure and secure varstore GUIDs 2016-06-22 16:52:40 +02:00