Skip to content

Commit 2af442f

Browse files
committed
selfcheck.yml: added suppressions for conditionally unused code
1 parent d535582 commit 2af442f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/selfcheck.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ jobs:
124124
# TODO: find a way to report unmatched suppressions without need to add information checks
125125
- name: Self check (unusedFunction / no test / no gui)
126126
run: |
127-
./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib -D__CPPCHECK__ -D__GNUC__ --enable=unusedFunction,information --exception-handling -rp=. --project=cmake.output.notest_nogui/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr
127+
supprs="--suppress=unusedFunction:lib/errorlogger.h:193 --suppress=unusedFunction:lib/importproject.cpp:1508 --suppress=unusedFunction:lib/suppressions.cpp:448"
128+
./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib -D__CPPCHECK__ -D__GNUC__ --enable=unusedFunction,information --exception-handling -rp=. --project=cmake.output.notest_nogui/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr $supprs
128129
env:
129130
DISABLE_VALUEFLOW: 1
130131
UNUSEDFUNCTION_ONLY: 1

0 commit comments

Comments
 (0)