]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Include error/warning ID in cppcheck output
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 20 Oct 2018 12:20:26 +0000 (14:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 25 Oct 2018 19:26:11 +0000 (21:26 +0200)
dev.mk.in

index 0a311fe5bd9068e0b5b61b0e7cda60fda7fc8df2..fcf53a960a1fb89ed9b4072d3bb9ab22947b3b38 100644 (file)
--- a/dev.mk.in
+++ b/dev.mk.in
@@ -191,6 +191,7 @@ check-syntax:
 cppcheck:
        $(CPPCHECK) --suppressions-list=$(CPPCHECK_SUPPRESSIONS) \
          --inline-suppr -q --enable=all --force -I . \
+         --template='cppcheck: warning: {id}:{file}:{line}: {message}' \
          $(non_3pp_sources) src/main.c $(test_sources)
 
 .PHONY: shellcheck