Skip to content

Commit

Permalink
Makefile: Use '--ignore-errors unused' with lcov
Browse files Browse the repository at this point in the history
We are a bit overzealous in specifying arguments to 'lcov -r', listing
files (via wildcard) that are not actually in the tracefile.

This is harmless, but will cause newer lcov to generate an error message
of type 'unused'. Reduce this error to a warning.

Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
  • Loading branch information
rarbab committed Aug 2, 2024
1 parent 737b4ec commit e48442c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.main
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ skiboot.info: coverage external/pflash/pflash.info external/gard/gard.info
lcov -q -r $@ 'external/gard/*' -o $@
lcov -q -a $@ -a external/pflash/pflash.info -o $@
lcov -q -a $@ -a external/gard/gard.info -o $@
lcov -q -r $@ $(LCOV_EXCLUDE) -o $@ --rc lcov_branch_coverage=1
lcov -q -r $@ $(LCOV_EXCLUDE) -o $@ --rc lcov_branch_coverage=1 --ignore-errors unused

doc:
make -C doc html
Expand Down

0 comments on commit e48442c

Please sign in to comment.