]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Ecc/c.py
BaseTools/Ecc: Allow init of function static variables
authorPierre Gondois <Pierre.Gondois@arm.com>
Thu, 10 Dec 2020 13:47:50 +0000 (13:47 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 22 Dec 2020 01:26:10 +0000 (01:26 +0000)
commit6899e6789a7f978175fc9cafec3459e4f4f8e1dc
tree1227341ff837248e4c4f71442d8eb0f7bdfdce07
parentb23c5b9722b50d598f861c057122e91fa3e6b3fe
BaseTools/Ecc: Allow init of function static variables

The Ecc tool currently reports the initialization of variables
at declaraton if the variable is non-constant and declared
in a function. Static variables locally defined in functions
should also be allowed to be initialized at declaration.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
BaseTools/Source/Python/Ecc/c.py