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 <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf 2016-09-09 11:01:22 -07:00
parent 8516203d53
commit 89f67518e1
1 changed files with 1 additions and 1 deletions

View File

@ -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: