Skip to content

Commit

Permalink
#164 tidy cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-courtis committed Dec 23, 2024
1 parent 4580191 commit 9a86055
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ iwyu: clean $(SRC_O) $(TST_O) $(EXAMPLE_O)
IWYU = include-what-you-use -Xiwyu --no_fwd_decls -Xiwyu --error=1 -Xiwyu --verbose=3 -Xiwyu --mapping_file=.iwyu.mappings

cppcheck: $(SRC_C) $(SRC_CXX) $(INC_H) $(EXAMPLE_C) $(TST_H) $(TST_C)
# TODO: add --check-level=exhaustive when cppcheck ~2.14 is availble for CI
# cppcheck --enable=warning,unusedFunction,performance,portability --check-level=exhaustive --suppressions-list=bld/cppcheck.supp --error-exitcode=1 $(^)
cppcheck --enable=warning,unusedFunction,performance,portability --suppressions-list=bld/cppcheck.supp --error-exitcode=1 $(^)

%-vg: VALGRIND = valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all --gen-suppressions=all --suppressions=bld/vg.supp
Expand Down
7 changes: 6 additions & 1 deletion bld/cppcheck.supp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
unusedFunction:lib/col/*c
unusedFunction:tst/wrap-log.c
unusedFunction:pro/*h

unusedFunction:tst/asserts.h
unusedFunction:tst/wrap-*.c

# TODO use --check-level=exhaustive once available in CI
normalCheckLevelMaxBranches

0 comments on commit 9a86055

Please sign in to comment.