Skip to content

Commit d141e63

Browse files
committed
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 <[email protected]> Change-Id: Id52b3d477b4ada7dd69a36101ab22c575ab4ef19
1 parent d75a9ec commit d141e63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ WARNING2 += -Wmissing-prototypes
374374
WARNING2 += -Wmissing-format-attribute
375375
# TF-A aims to comply with this eventually. Effort too large at present
376376
WARNING2 += -Wundef
377+
# currently very involved and many platforms set this off
378+
WARNING2 += -Wunused-const-variable=2
377379

378380
# Level 3 - very pedantic, frequently ignored
379381
WARNING3 := -Wbad-function-cast

0 commit comments

Comments
 (0)