summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2018-10-20 14:20:26 +0200
committerJoel Rosdahl <joel@rosdahl.net>2018-10-25 21:26:11 +0200
commitb66524426ae5d1e2a25266587e941b7482cf0aa4 (patch)
treee964cc95a2e4f6b4039d895b158acd16c32de9d4
parent35d4294fac61a320cdb8aba72e4a80a14ec79cb0 (diff)
downloadccache-b66524426ae5d1e2a25266587e941b7482cf0aa4.tar.gz
Include error/warning ID in cppcheck output
-rw-r--r--dev.mk.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev.mk.in b/dev.mk.in
index 0a311fe5..fcf53a96 100644
--- 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