summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-09-09 11:01:22 -0700
committerBrian Behlendorf <[email protected]>2016-09-09 11:24:54 -0700
commit89f67518e1c25a586ba2663210ec9791f12f1fba (patch)
tree766ddabb79e6dc9ab878072fb31b48da539f3dc6
parent8516203d53380bc32f62827afd0c13d16337c4e6 (diff)
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 <[email protected]>
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b0d23d00c..fe4285b3f 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: