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:
parent
8516203d53
commit
89f67518e1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue