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.
This commit is contained in:
Lennart Poettering 2013-12-16 00:04:40 +01:00
parent b5dd814873
commit 16f4efb415

View file

@ -4966,3 +4966,6 @@ tests += \
test-libsystemd-journal-sym \
test-libsystemd-login-sym \
test-libudev-sym
cppcheck:
cppcheck --enable=all $(top_srcdir)