mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00
build: add -Wunused-const-variable=2 to W=2
TF-A is quite strict with warnings and redundant code. This flag furthers this so it would be useful to have it. Add it to W=2 as it sets off a few platforms which require a somewhat involved fix. Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: Id52b3d477b4ada7dd69a36101ab22c575ab4ef19
This commit is contained in:
parent
d75a9ecdaa
commit
d141e63844
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -374,6 +374,8 @@ WARNING2 += -Wmissing-prototypes
|
||||||
WARNING2 += -Wmissing-format-attribute
|
WARNING2 += -Wmissing-format-attribute
|
||||||
# TF-A aims to comply with this eventually. Effort too large at present
|
# TF-A aims to comply with this eventually. Effort too large at present
|
||||||
WARNING2 += -Wundef
|
WARNING2 += -Wundef
|
||||||
|
# currently very involved and many platforms set this off
|
||||||
|
WARNING2 += -Wunused-const-variable=2
|
||||||
|
|
||||||
# Level 3 - very pedantic, frequently ignored
|
# Level 3 - very pedantic, frequently ignored
|
||||||
WARNING3 := -Wbad-function-cast
|
WARNING3 := -Wbad-function-cast
|
||||||
|
|
Loading…
Add table
Reference in a new issue