]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/DefaultExceptionHandlerLib/Arm/DefaultExceptionHandler.c
ArmPkg: Fix Ecc error 5007 in DefaultExceptionHandlerLib
authorPierre Gondois <Pierre.Gondois@arm.com>
Tue, 15 Dec 2020 17:16:02 +0000 (17:16 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 6 Jan 2021 16:22:54 +0000 (16:22 +0000)
commit7785b38ac9772d55b6d1e8560dde3f854e1dd34a
treee5a6af4c64fe563f52d2b513966f373453d2de18
parent0931171f54b2f357623d932fe1a987325d9c2077
ArmPkg: Fix Ecc error 5007 in DefaultExceptionHandlerLib

This patch fixes the following Ecc reported error:
There should be no initialization of a variable as
part of its declaration

Fixing this error implies extracting the CpsrChar
array from CpsrString and making it a static variable.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
ArmPkg/Library/DefaultExceptionHandlerLib/Arm/DefaultExceptionHandler.c