From 16f4efb4150c65e3c61adaa8ea512489de49f532 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 16 Dec 2013 00:04:40 +0100 Subject: [PATCH] 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. --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index ca4c5f87c..fa57559bd 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) -- 2.30.2