From 89f67518e1c25a586ba2663210ec9791f12f1fba Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 9 Sep 2016 11:01:22 -0700 Subject: [PATCH] Fix make lint target When errors are detected 'make lint' should return a non-zero error code. The value 2 was chosen to indicate these are warnings and not fatal. Signed-off-by: Brian Behlendorf --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index b0d23d00c376..fe4285b3fd62 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,7 +59,7 @@ lint: cppcheck cppcheck: @if type cppcheck > /dev/null 2>&1; then \ - cppcheck --quiet --force ${top_srcdir}; \ + cppcheck --quiet --force --error-exitcode=2 ${top_srcdir}; \ fi ctags: