summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-16 00:04:40 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-16 00:06:07 +0100
commit16f4efb4150c65e3c61adaa8ea512489de49f532 (patch)
tree560c9153a20609ce3c6f088f01270f79357c8d82 /Makefile.am
parentb5dd8148730db080b48b874c214f8f74ae787d6b (diff)
build-sys: add cppcheck target
This uses --enable=all mode. Should be taken with a grain of salt though. While many recommendations make sense we should probably keep "int r" always on function scope, and many of the portability warnings really don't matter to us because we only care for Linux/glibc.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index ca4c5f87c2..fa57559bda 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4966,3 +4966,6 @@ tests += \
test-libsystemd-journal-sym \
test-libsystemd-login-sym \
test-libudev-sym
+
+cppcheck:
+ cppcheck --enable=all $(top_srcdir)